1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-05 02:15:46 +01:00

Fix #182, map <silent> quirk.

This commit is contained in:
Kris Maglione
2009-09-03 20:08:58 -04:00
parent ab63b8c314
commit 561a3ff978
2 changed files with 14 additions and 7 deletions

View File

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

View File

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