diff options
| author | Stephen Blott | 2016-02-10 13:52:43 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-02-18 07:35:07 +0000 |
| commit | 201b51e1690bb993aa25a1c11f59afda6eab8747 (patch) | |
| tree | 290c99c4c10a0f4986e830ad077364862799ba2f /content_scripts/mode_insert.coffee | |
| parent | 02adaa7ad0c7921ebab5752470ff7f773802634c (diff) | |
| download | vimium-201b51e1690bb993aa25a1c11f59afda6eab8747.tar.bz2 | |
PassNextKey; allow multiple mappings.
This allows:
map a passNextKey
map b passNextKey
(Previously, we only picked up the first mapping.)
Diffstat (limited to 'content_scripts/mode_insert.coffee')
| -rw-r--r-- | content_scripts/mode_insert.coffee | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/content_scripts/mode_insert.coffee b/content_scripts/mode_insert.coffee index 391e8c95..a35633ac 100644 --- a/content_scripts/mode_insert.coffee +++ b/content_scripts/mode_insert.coffee @@ -11,9 +11,8 @@ class InsertMode extends Mode handleKeyEvent = (event) => return @continueBubbling unless @isActive event - # Check for the pass-next-key key. - keyChar = KeyboardUtils.getKeyCharString event - if keyChar and keyChar == Settings.get "passNextKeyKey" + # Check for a pass-next-key key. + if KeyboardUtils.getKeyCharString(event) in Settings.get "passNextKeyKeys" new PassNextKeyMode return false |
