mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 23:07:59 +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),
|
dactyl.assert(macro == null || /[a-zA-Z0-9]/.test(macro),
|
||||||
_("macro.invalid", macro));
|
_("macro.invalid", macro));
|
||||||
|
|
||||||
modes.recording = !!macro;
|
modes.recording = macro;
|
||||||
|
|
||||||
if (/[A-Z]/.test(macro)) { // uppercase (append)
|
if (/[A-Z]/.test(macro)) { // uppercase (append)
|
||||||
macro = macro.toLowerCase();
|
macro = macro.toLowerCase();
|
||||||
|
|||||||
@@ -229,10 +229,13 @@ var Modes = Module("modes", {
|
|||||||
// when recording a macro
|
// when recording a macro
|
||||||
let macromode = "";
|
let macromode = "";
|
||||||
if (this.recording)
|
if (this.recording)
|
||||||
macromode = "recording";
|
macromode = " recording " + this.recording;
|
||||||
else if (this.replaying)
|
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();
|
let val = this._modeMap[this._main].display();
|
||||||
if (val)
|
if (val)
|
||||||
return "-- " + val + " --" + macromode;
|
return "-- " + val + " --" + macromode;
|
||||||
@@ -306,9 +309,7 @@ var Modes = Module("modes", {
|
|||||||
if (!loaded.modes)
|
if (!loaded.modes)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
let msg = null;
|
let msg = this._getModeMessage();
|
||||||
if (options.get("showmode").getKey(this.main.allBases, false))
|
|
||||||
msg = this._getModeMessage();
|
|
||||||
|
|
||||||
if (msg || loaded.commandline)
|
if (msg || loaded.commandline)
|
||||||
commandline.widgets.mode = msg || null;
|
commandline.widgets.mode = msg || null;
|
||||||
|
|||||||
Reference in New Issue
Block a user