mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 652958 - FormHelper autocomplete does not work well with IME compositions [r=mfinkle]
This commit is contained in:
parent
a9ea2d4e29
commit
fe3ceabe09
@ -256,6 +256,14 @@ FormAssistant.prototype = {
|
||||
}
|
||||
|
||||
case "FormAssist:AutoComplete": {
|
||||
try {
|
||||
currentElement = currentElement.QueryInterface(Ci.nsIDOMNSEditableElement);
|
||||
let imeEditor = currentElement.editor.QueryInterface(Ci.nsIEditorIMESupport);
|
||||
if (imeEditor.composing)
|
||||
imeEditor.forceCompositionEnd();
|
||||
}
|
||||
catch(e) {}
|
||||
|
||||
currentElement.value = json.value;
|
||||
|
||||
let event = currentElement.ownerDocument.createEvent("Events");
|
||||
|
Loading…
Reference in New Issue
Block a user