1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 03:34:12 +01:00

[bootstrap] Fix bug in :map -silent.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-27 09:22:20 -05:00
parent 163539ab29
commit 7459dfc2c7

View File

@@ -487,7 +487,7 @@ var CommandLine = Module("commandline", {
set quiet(val) {
this._quiet = val;
["commandbar", "statusbar"].forEach(function (nodeSet) {
Array.forEach(this.widgets[nodeSet].commandline.childNodes, function (node) {
Array.forEach(this.widgets[nodeSet].commandline.children, function (node) {
node.style.opacity = this._quiet || this._silent ? "0" : "";
}, this);
}, this);
@@ -907,11 +907,10 @@ var CommandLine = Module("commandline", {
let command = this.command;
if (event.type == "blur") {
// prevent losing focus, there should be a better way, but it just didn't work otherwise
this.timeout(function () {
if (this.commandVisible && event.originalTarget == this.widgets.active.command.inputField)
dactyl.focus(this.widgets.active.command.inputField);
}, 0);
});
}
else if (event.type == "focus") {
if (!this.commandVisible && event.target == this.widgets.active.command.inputField) {