From 719c7a2085167415ea7f73b530999f9bf1a6fc87 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Wed, 26 Jan 2011 07:19:28 -0500 Subject: [PATCH] Fix focus change issue. --HG-- branch : key-processing --- common/content/events.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/common/content/events.js b/common/content/events.js index 9ae863e6..767eaeb2 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -1183,10 +1183,6 @@ var Events = Module("events", { // access to the real focus target // Huh? --djk onFocusChange: function onFocusChange(event) { - // command line has its own focus change handler - if (modes.main.input) - return; - function hasHTMLDocument(win) win && win.document && win.document instanceof HTMLDocument let win = window.document.commandDispatcher.focusedWindow; @@ -1222,7 +1218,7 @@ var Events = Module("events", { if (modes.main == modes.VISUAL && elem.selectionEnd == elem.selectionStart) modes.pop(); - if (!(modes.main & (modes.INSERT | modes.TEXT_EDIT | modes.VISUAL))) + if (!modes.main.input) if (options["insertmode"]) modes.push(modes.INSERT); else {