mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-10 23:05:46 +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) {
|
keyup: function onKeyUp(event) {
|
||||||
this.keyEvents.push(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 ||
|
let pass = this.passing && !event.isMacro ||
|
||||||
this.feedingEvent && this.feedingEvent.isReplay ||
|
this.feedingEvent && this.feedingEvent.isReplay ||
|
||||||
event.isReplay ||
|
event.isReplay ||
|
||||||
|
|||||||
Reference in New Issue
Block a user