From cc2dc276cdde3b08072cb6f9056f1d78b07cb675 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Tue, 9 Nov 2010 08:22:33 -0500 Subject: [PATCH] Fix focus problem on Windows. Closes issue \#130. Update issue #120 Merge: 130 Status: Duplicate --HG-- extra : rebase_source : 9785cf10ee35ce0a4937c477447197c4c10867ca --- common/content/events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/events.js b/common/content/events.js index bbd7e806..3aae9ef1 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -693,7 +693,7 @@ const Events = Module("events", { && isinstance(elem, [HTMLInputElement, HTMLSelectElement, HTMLTextAreaElement, Window])) if (elem.frameElement) dactyl.focusContent(true); - else + else if (!(elem instanceof Window) || Editor.getEditor(elem)) elem.blur(); },