зеркало из https://github.com/mozilla/gecko-dev.git
Bug 306437. Onchange events fired twice for option selection via mouseclick. r=dbaron, sr=neil
This commit is contained in:
Родитель
b9949fcef0
Коммит
030b1bfae0
|
@ -2779,9 +2779,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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче