1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 16:04:12 +01:00

Fix stacked key handling issues when fallthrough handlers are present. Fixes regression of issue #15.

This commit is contained in:
Kris Maglione
2011-02-19 03:22:42 -05:00
parent 6a62f02f60
commit 3132b2de22

View File

@@ -53,12 +53,17 @@ var ProcessorStack = Class("ProcessorStack", {
events.feedingKeys = false; events.feedingKeys = false;
} }
for (var res = this.actions[0]; callable(res);) { for (var action in values(this.actions)) {
res = dactyl.trapErrors(res); while (callable(action)) {
events.dbg("ACTION RES: " + res); action = dactyl.trapErrors(action);
events.dbg("ACTION RES: " + action);
}
if (action !== Events.PASS)
break;
} }
result = res !== undefined ? res : Events.KILL;
if (res !== Events.PASS) result = action !== undefined ? action : Events.KILL;
if (action !== Events.PASS)
this.processors.length = 0; this.processors.length = 0;
} }
else if (this.processors.length) { else if (this.processors.length) {
@@ -221,7 +226,7 @@ var KeyProcessor = Class("KeyProcessor", {
allEvents: this.allEvents, allEvents: this.allEvents,
command: this.command, command: this.command,
count: this.count, count: this.count,
events: this.events keypressEvents: this.events
}); });
} }