mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-28 22:13:32 +01:00
Fix stupid miscalculation in previous changeset.
This commit is contained in:
@@ -886,6 +886,8 @@ var Events = Module("events", {
|
|||||||
// interrupting whatever it's started and a real <C-c>
|
// interrupting whatever it's started and a real <C-c>
|
||||||
// interrupting our playback.
|
// interrupting our playback.
|
||||||
if (events.feedingKeys && !event.isMacro) {
|
if (events.feedingKeys && !event.isMacro) {
|
||||||
|
if (!event.originalTarget)
|
||||||
|
util.dumpStack();
|
||||||
if (key == "<C-c>") {
|
if (key == "<C-c>") {
|
||||||
events.feedingKeys = false;
|
events.feedingKeys = false;
|
||||||
if (modes.replaying) {
|
if (modes.replaying) {
|
||||||
@@ -1016,13 +1018,16 @@ var Events = Module("events", {
|
|||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
[duringFeed, this.duringFeed] = [this.duringFeed, duringFeed];
|
[duringFeed, this.duringFeed] = [this.duringFeed, duringFeed];
|
||||||
for (let event in this.duringFeed)
|
if (this.feedingKeys)
|
||||||
try {
|
this.duringFeed = this.duringFeed.concat(duringFeed);
|
||||||
this.dispatch(event.originalTarget, event, event);
|
else
|
||||||
}
|
for (let event in values(duringFeed))
|
||||||
catch (e) {
|
try {
|
||||||
util.reportError(e);
|
this.dispatch(event.originalTarget, event, event);
|
||||||
}
|
}
|
||||||
|
catch (e) {
|
||||||
|
util.reportError(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user