mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 08:27:59 +01:00
Fix beeping after every command when command after-image isn't disabled.
This commit is contained in:
@@ -555,12 +555,12 @@ const CommandLine = Module("commandline", {
|
||||
},
|
||||
|
||||
get command() {
|
||||
if (this.widgets.command)
|
||||
if (this.commandVisible && this.widgets.command)
|
||||
return this._lastCommand = this.widgets.command[1];
|
||||
return this._lastCommand;
|
||||
},
|
||||
set command(val) {
|
||||
if (this.widgets.command)
|
||||
if (this.commandVisible)
|
||||
return this.widgets.command = val;
|
||||
return this._lastCommand = val;
|
||||
},
|
||||
|
||||
@@ -124,6 +124,7 @@ const Dactyl = Module("dactyl", {
|
||||
* 'visualbell' option.
|
||||
*/
|
||||
beep: requiresMainThread(function () {
|
||||
dactyl.dumpStack();
|
||||
// FIXME: popups clear the command line
|
||||
if (options["visualbell"]) {
|
||||
// flash the visual bell
|
||||
|
||||
Reference in New Issue
Block a user