mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 20:17:59 +01:00
Fix strictfocus edgecase when the content window is editable.
--HG-- branch : key-processing
This commit is contained in:
@@ -551,7 +551,7 @@ var Buffer = Module("buffer", {
|
||||
* @returns {boolean}
|
||||
*/
|
||||
focusAllowed: function (elem) {
|
||||
if (elem instanceof Window && !Editor.getEditor(window))
|
||||
if (elem instanceof Window && !Editor.getEditor(elem))
|
||||
return true;
|
||||
let doc = elem.ownerDocument || elem.document || elem;
|
||||
return !options["strictfocus"] || doc.dactylFocusAllowed;
|
||||
|
||||
Reference in New Issue
Block a user