1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-05 04:34:12 +01:00

Fix 'noim'

--HG--
branch : key-processing
This commit is contained in:
Kris Maglione
2011-01-27 02:18:55 -05:00
parent 9419f83359
commit 726181b03e

View File

@@ -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;