summaryrefslogtreecommitdiff
path: root/common/content/events.js
diff options
context:
space:
mode:
Diffstat (limited to 'common/content/events.js')
-rw-r--r--common/content/events.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/content/events.js b/common/content/events.js
index a1ca17f5..21b44758 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -852,7 +852,7 @@ var Events = Module("events", {
if (evt_str.length == 1) {
evt_obj.charCode = evt_str.charCodeAt(0);
- evt_obj._keyCode = this._key_code[evt_str[0]];
+ evt_obj._keyCode = this._key_code[evt_str[0].toLowerCase()];
evt_obj.shiftKey = evt_str !== evt_str.toLowerCase();
}
else {
@@ -877,7 +877,7 @@ var Events = Module("events", {
keyname = keyname.toUpperCase();
evt_obj.charCode = keyname.charCodeAt(0);
- evt_obj._keyCode = this._key_code[keyname];
+ evt_obj._keyCode = this._key_code[keyname.toLowerCase()];
}
else if (set.has(this._pseudoKeys, keyname)) {
evt_obj.dactylString = "<" + this._key_key[keyname] + ">";