mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:28:00 +01:00
imported patch quick-cleanup
This commit is contained in:
@@ -940,17 +940,8 @@ function Buffer() //{{{
|
|||||||
* @property {Node} The last focused input field in the buffer. Used
|
* @property {Node} The last focused input field in the buffer. Used
|
||||||
* by the "gi" key binding.
|
* by the "gi" key binding.
|
||||||
*/
|
*/
|
||||||
get lastInputField()
|
get lastInputField() window.content.document.lastInputField || null,
|
||||||
{
|
set lastInputField(value) { window.content.document.lastInputField = value; },
|
||||||
if (window.content.document.lastInputField)
|
|
||||||
return window.content.document.lastInputField;
|
|
||||||
else
|
|
||||||
return null;
|
|
||||||
},
|
|
||||||
set lastInputField(value)
|
|
||||||
{
|
|
||||||
window.content.document.lastInputField = value;
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @property {string} The current top-level document's URL.
|
* @property {string} The current top-level document's URL.
|
||||||
|
|||||||
@@ -110,8 +110,6 @@ const modes = (function () //{{{
|
|||||||
|
|
||||||
get all() mainModes.slice(),
|
get all() mainModes.slice(),
|
||||||
|
|
||||||
get inputMode() main & (this.COMMAND_LINE | this.INPUT | this.TEXTAREA | this.COMPOSE),
|
|
||||||
|
|
||||||
get mainModes() (mode for ([k, mode] in Iterator(modeMap)) if (!mode.extended && mode.name == k)),
|
get mainModes() (mode for ([k, mode] in Iterator(modeMap)) if (!mode.extended && mode.name == k)),
|
||||||
|
|
||||||
get mainMode() modeMap[main],
|
get mainMode() modeMap[main],
|
||||||
|
|||||||
Reference in New Issue
Block a user