mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-09 16:44:11 +01:00
Fix issue with feeding keys from map actions executed after a timeout. Closes issue #378.
This commit is contained in:
@@ -34,10 +34,17 @@ var ProcessorStack = Class("ProcessorStack", {
|
||||
},
|
||||
|
||||
notify: function () {
|
||||
this.execute(Events.KILL, true);
|
||||
let kill = events.withSavedValues(["processor"], function () {
|
||||
events.processor = null;
|
||||
return this.execute(Events.KILL, true);
|
||||
}, this);
|
||||
|
||||
if (kill)
|
||||
events.processor = null;
|
||||
},
|
||||
|
||||
execute: function execute(result, force) {
|
||||
|
||||
if (force && this.actions.length)
|
||||
this.processors.length = 0;
|
||||
|
||||
@@ -90,9 +97,6 @@ var ProcessorStack = Class("ProcessorStack", {
|
||||
events.feedevents(null, list, { skipmap: true, isMacro: true, isReplay: true });
|
||||
}
|
||||
|
||||
if (force && this.processors.length === 0)
|
||||
events.processor = null;
|
||||
|
||||
return this.processors.length === 0;
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user