Skip to content

Commit

Permalink
Merge pull request #172 from vesper8/master
Browse files Browse the repository at this point in the history
adds methods for disabling the default VIM mappings and setting your own
  • Loading branch information
AydinHassan committed Apr 1, 2019
2 parents 29ebfa7 + 7feee27 commit 33ac5c0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/CliMenu.php
Expand Up @@ -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
*/
Expand Down

0 comments on commit 33ac5c0

Please sign in to comment.