From 408f85b04e2cb69dcb08d1c4dfa306e555239d07 Mon Sep 17 00:00:00 2001 From: Colin Kiegel Date: Wed, 10 Aug 2016 17:09:55 +0200 Subject: Consider the alt-key status when trying to detect see https://github.com/philc/vimium/issues/986#issuecomment-53955175--- lib/keyboard_utils.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/keyboard_utils.coffee b/lib/keyboard_utils.coffee index f997b455..9c694826 100644 --- a/lib/keyboard_utils.coffee +++ b/lib/keyboard_utils.coffee @@ -75,7 +75,8 @@ KeyboardUtils = isEscape: (event) -> # c-[ is mapped to ESC in Vim by default. - (event.keyCode == @keyCodes.ESC) || (event.ctrlKey && @getKeyChar(event) == '[' and not event.metaKey) + (event.keyCode == @keyCodes.ESC) || + (event.ctrlKey && @getKeyChar(event) == '[' and not event.metaKey and not event.altKey) # 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. -- cgit v1.2.3