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:
bryner%brianryner.com
2005-08-22 18:34:21 +00:00
parent 71bd6b5355
commit f8a877926f
4 changed files with 52 additions and 19 deletions

View File

@@ -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.