Bug 306437. change event fires twice for HTML select (mousedown & mouseup). r=dbaron, sr=neil, a=schrep

git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@179692 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
aaronleventhal%moonset.net
2005-09-06 14:07:25 +00:00
parent ffe36b0449
commit 418305ae94

View File

@@ -2785,9 +2785,11 @@ nsListControlFrame::MouseDown(nsIDOMEvent* aMouseEvent)
// Handle Like List
CaptureMouseEvents(GetPresContext(), PR_TRUE);
mChangesSinceDragStart = HandleListSelection(aMouseEvent, selectedIndex);
#ifdef ACCESSIBILITY
if (mChangesSinceDragStart) {
UpdateSelection(); // dispatch event, update combobox, etc.
FireMenuItemActiveEvent();
}
#endif
} else {
// NOTE: the combo box is responsible for dropping it down
if (mComboboxFrame) {