aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjez2011-05-17 19:38:33 -0400
committerjez2011-05-17 19:39:04 -0400
commitb5f380fb5e71bb5f3ec5f669f030483c80a371ef (patch)
tree9cfeaf76bae9e3a20e82c7b5ac50c175b44e9994
parent7e425177b0887af502f8029f263e1ff05c38f143 (diff)
downloadvimium-b5f380fb5e71bb5f3ec5f669f030483c80a371ef.tar.bz2
Fix mapping of bad keyIdentifiers. Closes #337.
-rw-r--r--lib/keyboardUtils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/keyboardUtils.js b/lib/keyboardUtils.js
index fe3dcd59..98725d95 100644
--- a/lib/keyboardUtils.js
+++ b/lib/keyboardUtils.js
@@ -44,7 +44,7 @@ function getKeyChar(event) {
// https://bugs.webkit.org/show_bug.cgi?id=19906 for more details.
if ((platform == "Windows" || platform == "Linux") && keyIdentifierCorrectionMap[keyIdentifier]) {
correctedIdentifiers = keyIdentifierCorrectionMap[keyIdentifier];
- keyIdentifier = event.shiftKey ? correctedIdentifiers[0] : correctedIdentifiers[1];
+ keyIdentifier = event.shiftKey ? correctedIdentifiers[1] : correctedIdentifiers[0];
}
var unicodeKeyInHex = "0x" + keyIdentifier.substring(2);
return String.fromCharCode(parseInt(unicodeKeyInHex)).toLowerCase();