diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-03-23 20:05:09 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-03-23 20:05:09 -0400 |
commit | cf90827bb8412d1e8712a3818f83ce7c290d0a3e (patch) | |
tree | c8529fbcf302d79d13601bb0def2f7b342318d57 /common/content | |
parent | 46e8d43429d1f4a2fcea9ee6d4d579c7086365c1 (diff) | |
download | pentadactyl-cf90827bb8412d1e8712a3818f83ce7c290d0a3e.tar.gz |
Fix more bloody Google site key mapping issues. Closes issue #459.
Diffstat (limited to 'common/content')
-rw-r--r-- | common/content/events.js | 4 |
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] + ">"; |