mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 05:08:00 +01:00
'strictfocus' enhancements for editiable iframes. Close issue #441.
This commit is contained in:
@@ -416,9 +416,9 @@ var Buffer = Module("buffer", {
|
||||
let doc = elem.ownerDocument || elem.document || elem;
|
||||
switch (options.get("strictfocus").getKey(doc.documentURIObject || util.newURI(doc.documentURI), "moderate")) {
|
||||
case "despotic":
|
||||
return elem.dactylFocusAllowed;
|
||||
return elem.dactylFocusAllowed || elem.frameElement && elem.frameElement.dactylFocusAllowed;
|
||||
case "moderate":
|
||||
return doc.dactylFocusAllowed;
|
||||
return doc.dactylFocusAllowed || elem.frameElement && elem.frameElement.ownerDocument.dactylFocusAllowed;
|
||||
default:
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user