1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-09 07:34:13 +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) if (key == "<C-c>" && !event.isMacro)
{ {
events.feedingKeys = false; events.feedingKeys = false;
if (lastMacro) if (modes.isReplaying)
{
modes.isReplaying = false;
setTimeout(function () { liberator.echomsg("Canceled playback of macro '" + lastMacro + "'"); }, 100); setTimeout(function () { liberator.echomsg("Canceled playback of macro '" + lastMacro + "'"); }, 100);
}
event.preventDefault(); event.preventDefault();
event.stopPropagation(); event.stopPropagation();
return true; return true;