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.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)