mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 20:57:58 +01:00
Show 'recording' message when showmode is false.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user