зеркало из https://github.com/mozilla/pjs.git
Bug 291443. Capture the mouse if the user clicks on an item in a showed drop-down list. r+sr=bzbarsky,a=asa
This commit is contained in:
Родитель
adabaec0ce
Коммит
e7fe85d510
|
@ -2705,11 +2705,9 @@ nsListControlFrame::MouseDown(nsIDOMEvent* aMouseEvent)
|
|||
|
||||
PRInt32 selectedIndex;
|
||||
if (NS_SUCCEEDED(GetIndexFromDOMEvent(aMouseEvent, selectedIndex))) {
|
||||
if (!IsInDropDownMode()) {
|
||||
// Handle Like List
|
||||
CaptureMouseEvents(GetPresContext(), PR_TRUE);
|
||||
mChangesSinceDragStart = HandleListSelection(aMouseEvent, selectedIndex);
|
||||
}
|
||||
// Handle Like List
|
||||
CaptureMouseEvents(GetPresContext(), PR_TRUE);
|
||||
mChangesSinceDragStart = HandleListSelection(aMouseEvent, selectedIndex);
|
||||
} else {
|
||||
// NOTE: the combo box is responsible for dropping it down
|
||||
if (mComboboxFrame) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче