diff options
| author | Stephen Blott | 2015-12-04 09:59:59 +0000 | 
|---|---|---|
| committer | Stephen Blott | 2015-12-04 09:59:59 +0000 | 
| commit | ec6a4115a420a66c114381c034e50cd0be10ab3d (patch) | |
| tree | d610a62b130132a57f1bfc971b33c4ab84cdfc3b /lib/keyboard_utils.coffee | |
| parent | 312aa1caca17505d377c9731fc808d90678a8e60 (diff) | |
| download | vimium-ec6a4115a420a66c114381c034e50cd0be10ab3d.tar.bz2 | |
For Ctrl-[, also require NOT Alt
See #1906.
It is not obvious that this is in fact correct.  In particular, it's not
clear how `Ctrl-[` should work on Mac keyboards.
Diffstat (limited to 'lib/keyboard_utils.coffee')
| -rw-r--r-- | lib/keyboard_utils.coffee | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lib/keyboard_utils.coffee b/lib/keyboard_utils.coffee index 5c95680c..f123f75a 100644 --- a/lib/keyboard_utils.coffee +++ b/lib/keyboard_utils.coffee @@ -53,7 +53,7 @@ KeyboardUtils =    isEscape: (event) ->      # c-[ is mapped to ESC in Vim by default. -    (event.keyCode == @keyCodes.ESC) || (event.ctrlKey && @getKeyChar(event) == '[') +    (event.keyCode == @keyCodes.ESC) || (event.ctrlKey && @getKeyChar(event) == '[' and not event.metaKey)    # TODO. This is probably a poor way of detecting printable characters.  However, it shouldn't incorrectly    # identify any of chrome's own keyboard shortcuts as printable. | 
