From f909cc128e4f9749e68ea1e7fcf3350d9e5ae611 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 12 Mar 2009 00:31:59 +1100 Subject: [PATCH] Cancel the isReplaying macro mode when a macro is interrupted. --- common/content/events.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/common/content/events.js b/common/content/events.js index 6c655cf7..c7449d64 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -1375,8 +1375,11 @@ function Events() //{{{ if (key == "" && !event.isMacro) { events.feedingKeys = false; - if (lastMacro) + if (modes.isReplaying) + { + modes.isReplaying = false; setTimeout(function () { liberator.echomsg("Canceled playback of macro '" + lastMacro + "'"); }, 100); + } event.preventDefault(); event.stopPropagation(); return true;