1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-31 13:05:54 +01:00

macros ≡ macros.

This commit is contained in:
Kris Maglione
2011-10-06 08:56:13 -04:00
parent 0cf53f8181
commit 40104c2b8b
5 changed files with 61 additions and 48 deletions

View File

@@ -178,17 +178,20 @@ var Modes = Module("modes", {
// when recording a macro
let macromode = "";
if (this.recording)
macromode = " recording " + this.recording;
macromode = "recording " + this.recording + " ";
else if (this.replaying)
macromode = " replaying";
macromode = "replaying";
if (!options.get("showmode").getKey(this.main.allBases, false))
return macromode;
let val = this._modeMap[this._main].display();
if (val)
return "-- " + val + " --" + macromode;
return macromode;
let modeName = this._modeMap[this._main].display();
if (!modeName)
return macromode;
if (macromode)
macromode = " " + macromode;
return "-- " + modeName + " --" + macromode;
},
NONE: 0,