mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 04:32:31 +02:00
Cancel the isReplaying macro mode when a macro is interrupted.
This commit is contained in:
1 parent
8b65863488
commit
f909cc128e
1 file changed
+4
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user