diff options
| author | Jim Ramsay | 2010-01-04 22:46:58 +0800 |
|---|---|---|
| committer | Ilya | 2010-01-06 05:23:53 +0800 |
| commit | a203808efa86780b5d66b893f0f476c0f834dc39 (patch) | |
| tree | 5dc81d509cefd2ef955997c0e44d5b04a78b18f3 /vimiumFrontend.js | |
| parent | 73599a87ef35be102719b38c86c8b2d0e1e4867f (diff) | |
| download | vimium-a203808efa86780b5d66b893f0f476c0f834dc39.tar.bz2 | |
Linux also suffers from webkit keyIdentifier bug
Diffstat (limited to 'vimiumFrontend.js')
| -rw-r--r-- | vimiumFrontend.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vimiumFrontend.js b/vimiumFrontend.js index ff6957bb..b2750760 100644 --- a/vimiumFrontend.js +++ b/vimiumFrontend.js @@ -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(); |
