From 726181b03ed51947f73e9d4161e9f05a3609e462 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Thu, 27 Jan 2011 02:18:55 -0500 Subject: [PATCH] Fix 'noim' --HG-- branch : key-processing --- common/content/events.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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;