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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user