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.
keyIdentifier
1 parent ab63bc1 commit e616a4cCopy full SHA for e616a4c
content_scripts/vimium_frontend.coffee
@@ -359,8 +359,8 @@ onKeydown = (event) ->
359
360
# handle special keys, and normal input keys with modifiers being pressed. don't handle shiftKey alone (to
361
# avoid / being interpreted as ?
362
- if (((event.metaKey || event.ctrlKey || event.altKey) && event.keyCode > 31) ||
363
- event.keyIdentifier.slice(0, 2) != "U+")
+ if (((event.metaKey || event.ctrlKey || event.altKey) && event.keyCode > 31) || (
+ event.keyIdentifier && event.keyIdentifier.slice(0, 2) != "U+"))
364
keyChar = KeyboardUtils.getKeyChar(event)
365
# Again, ignore just modifiers. Maybe this should replace the keyCode>31 condition.
366
if (keyChar != "")
0 commit comments