Skip to content

Commit 7feee27

Browse files
committed
adds a method for disabling the default VIM mappings
adds a method for setting default control mappings
1 parent 29ebfa7 commit 7feee27

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

src/CliMenu.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,22 @@ private function selectFirstItem() : void
200200
}
201201
}
202202

203+
/**
204+
* Disables the built-in VIM control mappings
205+
*/
206+
public function disableDefaultControlMappings() : void
207+
{
208+
$this->defaultControlMappings = [];
209+
}
210+
211+
/**
212+
* Set default control mappings
213+
*/
214+
public function setDefaultControlMappings(array $defaultControlMappings) : void
215+
{
216+
$this->defaultControlMappings = $defaultControlMappings;
217+
}
218+
203219
/**
204220
* Adds a custom control mapping
205221
*/

0 commit comments

Comments
 (0)