mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 04:32:26 +01:00
Deal with some spurious duplicate keyup events.
This commit is contained in:
@@ -1317,6 +1317,11 @@ var Events = Module("events", {
|
||||
keyup: function onKeyUp(event) {
|
||||
this.keyEvents.push(event);
|
||||
|
||||
let isMacro = event.isMacro || this.feedingEvent && this.feedingEvent.isMacro;
|
||||
if (this.lastKeyFake && !isMacro)
|
||||
this.passing = false;
|
||||
this.lastKeyFake = isMacro;
|
||||
|
||||
let pass = this.passing && !event.isMacro ||
|
||||
this.feedingEvent && this.feedingEvent.isReplay ||
|
||||
event.isReplay ||
|
||||
|
||||
Reference in New Issue
Block a user