diff --git a/src/CliMenu.php b/src/CliMenu.php index f9016705..01cc9f7f 100644 --- a/src/CliMenu.php +++ b/src/CliMenu.php @@ -200,6 +200,22 @@ private function selectFirstItem() : void } } + /** + * Disables the built-in VIM control mappings + */ + public function disableDefaultControlMappings() : void + { + $this->defaultControlMappings = []; + } + + /** + * Set default control mappings + */ + public function setDefaultControlMappings(array $defaultControlMappings) : void + { + $this->defaultControlMappings = $defaultControlMappings; + } + /** * Adds a custom control mapping */