summaryrefslogtreecommitdiff
path: root/common/content/events.js
diff options
context:
space:
mode:
authorKris Maglione <maglione.k@gmail.com>2011-06-11 13:45:30 -0400
committerKris Maglione <maglione.k@gmail.com>2011-06-11 13:45:30 -0400
commit3cc9ce2f8c6ad0053ac9c63cba2aa8ba18bf8bfc (patch)
treefea6e2f944b4464464468d1337e2604142abd448 /common/content/events.js
parentc4c0ab7789e41fbde18791efa932368533c82426 (diff)
downloadpentadactyl-3cc9ce2f8c6ad0053ac9c63cba2aa8ba18bf8bfc.tar.gz
Fix mode name generated for longer names in mapping serialization. Closes issue #565.
--HG-- extra : rebase_source : 115073fae6cf2a15692cac72df976e1eacf5298e
Diffstat (limited to 'common/content/events.js')
-rw-r--r--common/content/events.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/content/events.js b/common/content/events.js
index 9e36d766..3c72b4e8 100644
--- a/common/content/events.js
+++ b/common/content/events.js
@@ -1315,7 +1315,10 @@ var Events = Module("events", {
},
keyup: function onKeyUp(event) {
- this.keyEvents.push(event);
+ if (this.type == "keydown")
+ this.keyEvents.push(event);
+ else
+ this.keyEvents = [];
let isMacro = event.isMacro || this.feedingEvent && this.feedingEvent.isMacro;
if (this.lastKeyFake && !isMacro)