diff options
author | Kris Maglione <maglione.k@gmail.com> | 2011-06-11 13:45:30 -0400 |
---|---|---|
committer | Kris Maglione <maglione.k@gmail.com> | 2011-06-11 13:45:30 -0400 |
commit | 3cc9ce2f8c6ad0053ac9c63cba2aa8ba18bf8bfc (patch) | |
tree | fea6e2f944b4464464468d1337e2604142abd448 /common/content/events.js | |
parent | c4c0ab7789e41fbde18791efa932368533c82426 (diff) | |
download | pentadactyl-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.js | 5 |
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) |