aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2018-08-10 16:14:30 +0100
committerStephen Blott2018-08-10 16:14:32 +0100
commit43fe8cecdfb4f82f5d1d5f25520cd86a44824c67 (patch)
tree09d15533e8ec742af6b5e7e4f7579ff8ea2fb0b1
parent3134c397979b364a3def159757ec88c9e36cfaea (diff)
downloadvimium-43fe8cecdfb4f82f5d1d5f25520cd86a44824c67.tar.bz2
Tweak #3079.
Fixes #3068.
-rw-r--r--lib/keyboard_utils.coffee7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/keyboard_utils.coffee b/lib/keyboard_utils.coffee
index 63d2afdc..76f2f777 100644
--- a/lib/keyboard_utils.coffee
+++ b/lib/keyboard_utils.coffee
@@ -66,10 +66,11 @@ KeyboardUtils =
(event) ->
# <c-[> is mapped to Escape in Vim by default.
- # Escape with a keyCode 229 means that this event comes from IME, and should not be treat as a directly/normal ESC press.
- # In this case, IME will take care of the ESC press event, not vimium.
+ # Escape with a keyCode 229 means that this event comes from IME, and should not be treated as a
+ # direct/normal Escape event. IME will handle the event, not vimium.
# See https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
- (event.key == "Escape" and event.keyCode != 229) or (useVimLikeEscape and @getKeyCharString(event) == "<c-[>")
+ (event.key == "Escape" and event.keyCode != 229) or
+ (useVimLikeEscape and @getKeyCharString(event) == "<c-[>")
isBackspace: (event) ->
event.key in ["Backspace", "Delete"]