In the XUL autocomplete widget, make user-initiated autocomplete dispatch an oninput event, just as if the user had typed the text. Also fixing a bug where it was not possible to create an oninput event from script. Bug 287996, r=mconnor sr=jst.
git-svn-id: svn://10.0.0.236/trunk@178617 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2947,7 +2947,7 @@ nsTextControlFrame::FireOnInput()
|
||||
|
||||
// Dispatch the "input" event
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
nsGUIEvent event(PR_TRUE, NS_FORM_INPUT, nsnull);
|
||||
nsUIEvent event(PR_TRUE, NS_FORM_INPUT, 0);
|
||||
|
||||
// Have the content handle the event, propagating it according to normal
|
||||
// DOM rules.
|
||||
|
||||
Reference in New Issue
Block a user