diff --git a/common/content/events.js b/common/content/events.js index 7be1d152..ff6aaebf 100644 --- a/common/content/events.js +++ b/common/content/events.js @@ -1209,15 +1209,6 @@ var Events = Module("events", { return; } - if (Events.isInputElement(elem)) { - if (!modes.main.input) - modes.push(modes.INSERT); - - if (hasHTMLDocument(win)) - buffer.lastInputField = elem; - return; - } - if (elem instanceof HTMLTextAreaElement || (elem && util.computedStyle(elem).MozUserModify == "read-write") || elem == null && win && Editor.getEditor(win)) { @@ -1238,6 +1229,15 @@ var Events = Module("events", { return; } + if (Events.isInputElement(elem)) { + if (!modes.main.input) + modes.push(modes.INSERT); + + if (hasHTMLDocument(win)) + buffer.lastInputField = elem; + return; + } + if (config.focusChange) { config.focusChange(win); return;