diff --git a/common/content/events.js b/common/content/events.js index 555698a8..08f16692 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -865,7 +865,7 @@ function Events() //{{{ * command line. * @returns {boolean} */ - feedkeys: function (keys, noremap, silent) + feedkeys: function (keys, noremap, quiet) { let doc = window.document; let view = window.document.defaultView; @@ -873,9 +873,9 @@ function Events() //{{{ let wasFeeding = this.feedingKeys; this.feedingKeys = true; this.duringFeed = this.duringFeed || []; - let wasSilent = commandline.silent; - if (silent) - commandline.silent = silent; + let wasQuiet = commandline.quiet; + if (quiet) + commandline.quiet = quiet; try { @@ -914,8 +914,8 @@ function Events() //{{{ finally { this.feedingKeys = wasFeeding; - if (silent) - commandline.silent = wasSilent; + if (quiet) + commandline.quiet = wasQuiet; if (this.duringFeed.length) { diff --git a/common/content/ui.js b/common/content/ui.js index c61d3965..5ce63056 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -110,6 +110,7 @@ function CommandLine() //{{{ var lastMowOutput = null; var silent = false; + var quiet = false; var keepCommand = false; var lastEcho = null; @@ -1022,8 +1023,14 @@ function CommandLine() //{{{ set silent(val) { silent = val; + this.quiet = this.quiet; + }, + get quiet() quiet, + set quiet(val) + { + quiet = val; Array.forEach(document.getElementById("liberator-commandline").childNodes, function (node) { - node.style.opacity = silent ? "0" : ""; + node.style.opacity = quiet || silent ? "0" : ""; }); },