mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 07:28:00 +01:00
Fix odd "gi" corner case.
This commit is contained in:
@@ -381,7 +381,10 @@ const Buffer = Module("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() this.localStore.lastInputField && this.localStore.lastInputField.get() || null,
|
get lastInputField() {
|
||||||
|
let field = this.localStore.lastInputField && this.localStore.lastInputField.get();
|
||||||
|
return field && field.ownerDocument == field.ownerDocument.defaultView.document ? field : null;
|
||||||
|
},
|
||||||
set lastInputField(value) { this.localStore.lastInputField = value && Cu.getWeakReference(value); },
|
set lastInputField(value) { this.localStore.lastInputField = value && Cu.getWeakReference(value); },
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user