Skip to content

Commit 33ac5c0

Browse files
authored
Merge pull request #172 from vesper8/master
adds methods for disabling the default VIM mappings and setting your own
2 parents 29ebfa7 + 7feee27 commit 33ac5c0

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)