mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 716515 - Send DOMAutocomplete event when autocomplete is selected. r=mleibovic
This commit is contained in:
parent
c9729c8e9a
commit
a04b1acc59
@ -2813,6 +2813,11 @@ var FormAssistant = {
|
|||||||
// Remove focus from the textbox to avoid some bad IME interactions
|
// Remove focus from the textbox to avoid some bad IME interactions
|
||||||
this._currentInputElement.blur();
|
this._currentInputElement.blur();
|
||||||
this._currentInputElement.value = aData;
|
this._currentInputElement.value = aData;
|
||||||
|
|
||||||
|
let event = this._currentInputElement.ownerDocument.createEvent("Events");
|
||||||
|
event.initEvent("DOMAutoComplete", true, true);
|
||||||
|
this._currentInputElement.dispatchEvent(event);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case "FormAssist:Hidden":
|
case "FormAssist:Hidden":
|
||||||
|
Loading…
Reference in New Issue
Block a user