mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 17:02:30 +02:00
'strictfocus' enhancements for editiable iframes. Close issue #441.
This commit is contained in:
1 parent
1fab1e600b
commit
4dcef46f08
1 file changed
+2
-2
@@ -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