1
0
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:
Kris Maglione
2010-09-28 09:42:59 -04:00
parent 67eee9ad89
commit 60a2f83daa
2 changed files with 3 additions and 2 deletions

View File

@@ -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;
},

View File

@@ -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