mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 23:05:45 +01:00
Fix #182, map <silent> quirk.
This commit is contained in:
@@ -865,7 +865,7 @@ function Events() //{{{
|
|||||||
* command line.
|
* command line.
|
||||||
* @returns {boolean}
|
* @returns {boolean}
|
||||||
*/
|
*/
|
||||||
feedkeys: function (keys, noremap, silent)
|
feedkeys: function (keys, noremap, quiet)
|
||||||
{
|
{
|
||||||
let doc = window.document;
|
let doc = window.document;
|
||||||
let view = window.document.defaultView;
|
let view = window.document.defaultView;
|
||||||
@@ -873,9 +873,9 @@ function Events() //{{{
|
|||||||
let wasFeeding = this.feedingKeys;
|
let wasFeeding = this.feedingKeys;
|
||||||
this.feedingKeys = true;
|
this.feedingKeys = true;
|
||||||
this.duringFeed = this.duringFeed || [];
|
this.duringFeed = this.duringFeed || [];
|
||||||
let wasSilent = commandline.silent;
|
let wasQuiet = commandline.quiet;
|
||||||
if (silent)
|
if (quiet)
|
||||||
commandline.silent = silent;
|
commandline.quiet = quiet;
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@@ -914,8 +914,8 @@ function Events() //{{{
|
|||||||
finally
|
finally
|
||||||
{
|
{
|
||||||
this.feedingKeys = wasFeeding;
|
this.feedingKeys = wasFeeding;
|
||||||
if (silent)
|
if (quiet)
|
||||||
commandline.silent = wasSilent;
|
commandline.quiet = wasQuiet;
|
||||||
|
|
||||||
if (this.duringFeed.length)
|
if (this.duringFeed.length)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -110,6 +110,7 @@ function CommandLine() //{{{
|
|||||||
var lastMowOutput = null;
|
var lastMowOutput = null;
|
||||||
|
|
||||||
var silent = false;
|
var silent = false;
|
||||||
|
var quiet = false;
|
||||||
var keepCommand = false;
|
var keepCommand = false;
|
||||||
var lastEcho = null;
|
var lastEcho = null;
|
||||||
|
|
||||||
@@ -1022,8 +1023,14 @@ function CommandLine() //{{{
|
|||||||
set silent(val)
|
set silent(val)
|
||||||
{
|
{
|
||||||
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) {
|
Array.forEach(document.getElementById("liberator-commandline").childNodes, function (node) {
|
||||||
node.style.opacity = silent ? "0" : "";
|
node.style.opacity = quiet || silent ? "0" : "";
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user