aboutsummaryrefslogtreecommitdiffstats
path: root/lib/keyboard_utils.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-01-31 08:50:27 +0000
committerStephen Blott2016-01-31 08:50:27 +0000
commitc2e55bdcbaabb6dccf76feafed023960c60b1854 (patch)
tree5634d601a820fbe7548b4b89b209cfd992ad8bc1 /lib/keyboard_utils.coffee
parent334e9d7c4723b71706c4e3def3fd996bf7dff6f6 (diff)
parentec6a4115a420a66c114381c034e50cd0be10ab3d (diff)
downloadvimium-c2e55bdcbaabb6dccf76feafed023960c60b1854.tar.bz2
Merge pull request #1908 from smblott-github/fix-ctrl-escape
For Ctrl-[, also require NOT Alt
Diffstat (limited to 'lib/keyboard_utils.coffee')
-rw-r--r--lib/keyboard_utils.coffee2
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.