Skip to content

Commit

Permalink
Linux also suffers from webkit keyIdentifier bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lack authored and ilya committed Jan 5, 2010
1 parent 73599a8 commit a203808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimiumFrontend.js
Expand Up @@ -247,7 +247,7 @@ function onKeydown(event) {
var keyIdentifier = event.keyIdentifier;
// On Windows, the keyIdentifiers for non-letter keys are incorrect. See
// https://bugs.webkit.org/show_bug.cgi?id=19906 for more details.
if (platform == "Windows")
if (platform == "Windows" || platform == "Linux")
keyIdentifier = keyIdentifierCorrectionMap[keyIdentifier] || keyIdentifier;
unicodeKeyInHex = "0x" + keyIdentifier.substring(2);
keyChar = String.fromCharCode(parseInt(unicodeKeyInHex)).toLowerCase();
Expand Down

0 comments on commit a203808

Please sign in to comment.