From 631b309fade8ad44e6eb201bad7e83be752168a8 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 7 Oct 2011 06:52:52 -0400 Subject: [PATCH] Backout part of 30a75c5eb277. --- common/content/events.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/content/events.js b/common/content/events.js index 05f62183..ca872006 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -883,6 +883,15 @@ var Events = Module("events", { return; } + if (elem && Events.isInputElement(elem)) { + if (!haveInput) + modes.push(modes.INSERT); + + if (hasHTMLDocument(win)) + buffer.lastInputField = elem; + return; + } + if (config.focusChange) { config.focusChange(win); return;