diff options
Diffstat (limited to 'lib/keyboardUtils.js')
| -rw-r--r-- | lib/keyboardUtils.js | 2 |
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(); |
