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

Cancel the isReplaying macro mode when a macro is interrupted.

This commit is contained in:
Doug Kearns
2009-03-12 00:31:59 +11:00
parent 8b65863488
commit f909cc128e

View File

@@ -1375,8 +1375,11 @@ function Events() //{{{
if (key == "<C-c>" && !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;