We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 342723b commit 3134c39Copy full SHA for 3134c39
lib/keyboard_utils.coffee
@@ -66,7 +66,10 @@ KeyboardUtils =
66
67
(event) ->
68
# <c-[> is mapped to Escape in Vim by default.
69
- event.key == "Escape" or (useVimLikeEscape and @getKeyCharString(event) == "<c-[>")
+ # Escape with a keyCode 229 means that this event comes from IME, and should not be treat as a directly/normal ESC press.
70
+ # In this case, IME will take care of the ESC press event, not vimium.
71
+ # See https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html
72
+ (event.key == "Escape" and event.keyCode != 229) or (useVimLikeEscape and @getKeyCharString(event) == "<c-[>")
73
74
isBackspace: (event) ->
75
event.key in ["Backspace", "Delete"]
0 commit comments