mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 18:37:58 +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() {
|
get command() {
|
||||||
if (this.widgets.command)
|
if (this.commandVisible && this.widgets.command)
|
||||||
return this._lastCommand = this.widgets.command[1];
|
return this._lastCommand = this.widgets.command[1];
|
||||||
return this._lastCommand;
|
return this._lastCommand;
|
||||||
},
|
},
|
||||||
set command(val) {
|
set command(val) {
|
||||||
if (this.widgets.command)
|
if (this.commandVisible)
|
||||||
return this.widgets.command = val;
|
return this.widgets.command = val;
|
||||||
return this._lastCommand = val;
|
return this._lastCommand = val;
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -124,6 +124,7 @@ const Dactyl = Module("dactyl", {
|
|||||||
* 'visualbell' option.
|
* 'visualbell' option.
|
||||||
*/
|
*/
|
||||||
beep: requiresMainThread(function () {
|
beep: requiresMainThread(function () {
|
||||||
|
dactyl.dumpStack();
|
||||||
// FIXME: popups clear the command line
|
// FIXME: popups clear the command line
|
||||||
if (options["visualbell"]) {
|
if (options["visualbell"]) {
|
||||||
// flash the visual bell
|
// flash the visual bell
|
||||||
|
|||||||
Reference in New Issue
Block a user