diff --git a/common/content/events.js b/common/content/events.js index 090e964c..2fcfc391 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -244,7 +244,7 @@ var Events = Module("events", { dactyl.assert(macro == null || /[a-zA-Z0-9]/.test(macro), _("macro.invalid", macro)); - modes.recording = !!macro; + modes.recording = macro; if (/[A-Z]/.test(macro)) { // uppercase (append) macro = macro.toLowerCase(); diff --git a/common/content/modes.js b/common/content/modes.js index 35494578..9c02b966 100644 --- a/common/content/modes.js +++ b/common/content/modes.js @@ -229,9 +229,12 @@ var Modes = Module("modes", { // when recording a macro let macromode = ""; if (this.recording) - macromode = "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) @@ -306,9 +309,7 @@ var Modes = Module("modes", { if (!loaded.modes) return; - let msg = null; - if (options.get("showmode").getKey(this.main.allBases, false)) - msg = this._getModeMessage(); + let msg = this._getModeMessage(); if (msg || loaded.commandline) commandline.widgets.mode = msg || null;