mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-28 08:03:32 +01:00
Fix 'noim'
--HG-- branch : key-processing
This commit is contained in:
@@ -1209,15 +1209,6 @@ var Events = Module("events", {
|
|||||||
return;
|
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")
|
if (elem instanceof HTMLTextAreaElement || (elem && util.computedStyle(elem).MozUserModify == "read-write")
|
||||||
|| elem == null && win && Editor.getEditor(win)) {
|
|| elem == null && win && Editor.getEditor(win)) {
|
||||||
|
|
||||||
@@ -1238,6 +1229,15 @@ var Events = Module("events", {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Events.isInputElement(elem)) {
|
||||||
|
if (!modes.main.input)
|
||||||
|
modes.push(modes.INSERT);
|
||||||
|
|
||||||
|
if (hasHTMLDocument(win))
|
||||||
|
buffer.lastInputField = elem;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (config.focusChange) {
|
if (config.focusChange) {
|
||||||
config.focusChange(win);
|
config.focusChange(win);
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user