1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-24 03:22:26 +01:00

Fix despotic strictfocus issue.

This commit is contained in:
Kris Maglione
2011-12-22 21:10:03 -05:00
parent 822ffafc12
commit a4cc7e6d88

View File

@@ -613,6 +613,12 @@ var Events = Module("events", {
let win = (elem.ownerDocument || elem).defaultView || elem;
util.dump("focus", elem instanceof Element ? elem : String(elem));
util.dump(" ", (services.focus.getLastFocusMethod(win) & 0x3000),
events.isContentNode(elem),
!buffer.focusAllowed(elem),
isinstance(elem, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement, Window]));
if (!(services.focus.getLastFocusMethod(win) & 0x3000)
&& events.isContentNode(elem)
&& !buffer.focusAllowed(elem)
@@ -625,7 +631,7 @@ var Events = Module("events", {
}
if (elem instanceof Element)
elem.dactylFocusAllowed = undefined;
delete overlay.getData(elem)["focus-allowed"];
},
/*