1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 06:48:00 +01:00

Fix strictfocus edgecase when the content window is editable.

--HG--
extra : transplant_source : B4%F6%E1a%0A%0Eo8u%DC%A0%E8%27%01%E1%8A%FF3Z
This commit is contained in:
Kris Maglione
2011-01-26 19:53:46 -05:00
parent 8db7f4c1e5
commit 197850aeca
3 changed files with 19 additions and 19 deletions

View File

@@ -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;