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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user