mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 21:52:27 +01:00
Report macro replay in the mode line.
This commit is contained in:
@@ -61,11 +61,14 @@ liberator.modes = (function () //{{{
|
|||||||
if (extended & liberator.modes.MENU) // TODO: desirable?
|
if (extended & liberator.modes.MENU) // TODO: desirable?
|
||||||
ext += " (menu)";
|
ext += " (menu)";
|
||||||
|
|
||||||
ext += " --";
|
|
||||||
|
|
||||||
// when recording a macro
|
// when recording a macro
|
||||||
|
var macromode = "";
|
||||||
if (liberator.modes.isRecording)
|
if (liberator.modes.isRecording)
|
||||||
ext += "recording";
|
macromode = "recording";
|
||||||
|
else if (liberator.modes.isReplaying)
|
||||||
|
macromode = "replaying";
|
||||||
|
|
||||||
|
ext += " --" + macromode;
|
||||||
|
|
||||||
switch (main)
|
switch (main)
|
||||||
{
|
{
|
||||||
@@ -86,10 +89,7 @@ liberator.modes = (function () //{{{
|
|||||||
case liberator.modes.CUSTOM:
|
case liberator.modes.CUSTOM:
|
||||||
return "-- " + liberator.plugins.mode + ext;
|
return "-- " + liberator.plugins.mode + ext;
|
||||||
default: // NORMAL mode
|
default: // NORMAL mode
|
||||||
if (liberator.modes.isRecording)
|
return macromode;
|
||||||
return "recording";
|
|
||||||
else
|
|
||||||
return "";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user