mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 09:27:58 +01:00
Minor key event processing changes.
This commit is contained in:
@@ -57,7 +57,7 @@ var ProcessorStack = Class("ProcessorStack", {
|
||||
res = dactyl.trapErrors(res);
|
||||
events.dbg("ACTION RES: " + res);
|
||||
}
|
||||
result = res === Events.PASS ? Events.PASS : Events.KILL;
|
||||
result = res !== undefined ? res : Events.KILL;
|
||||
if (res !== Events.PASS)
|
||||
this.processors.length = 0;
|
||||
}
|
||||
@@ -79,9 +79,10 @@ var ProcessorStack = Class("ProcessorStack", {
|
||||
|
||||
events.dbg("RESULT: " + (result === Events.KILL ? "KILL" :
|
||||
result === Events.PASS ? "PASS" :
|
||||
result === Events.PASS_THROUGH ? "PASS_THROUGH" :
|
||||
result === Events.ABORT ? "ABORT" : result));
|
||||
|
||||
if (result !== Events.PASS)
|
||||
if (result !== Events.PASS || this.events.length > 1)
|
||||
Events.kill(this.events[this.events.length - 1]);
|
||||
|
||||
if (result === Events.PASS_THROUGH)
|
||||
@@ -216,7 +217,7 @@ var KeyProcessor = Class("KeyProcessor", {
|
||||
else if (map.motion)
|
||||
return KeyArgProcessor(this, map, true, "motion");
|
||||
|
||||
return this.execute(map, { count: this.count, command: this.command, events: this.events });
|
||||
return this.execute(map, { count: this.count, command: this.command, events: this.events, allEvents: this.allEvents });
|
||||
}
|
||||
|
||||
if (!this.waiting)
|
||||
|
||||
Reference in New Issue
Block a user