зеркало из https://github.com/mozilla/gecko-dev.git
Update the displayed text when closing a combobox with the keyboard causes a new option to be selected. Bug 257572, r=mkaply, sr=jst.
This commit is contained in:
Родитель
7e6f167995
Коммит
96ff7a927c
|
@ -3049,6 +3049,7 @@ nsListControlFrame::DropDownToggleKey(nsIDOMEvent* aKeyEvent)
|
|||
PRBool isDroppedDown;
|
||||
mComboboxFrame->IsDroppedDown(&isDroppedDown);
|
||||
mComboboxFrame->ShowDropDown(!isDroppedDown);
|
||||
mComboboxFrame->RedisplaySelectedText();
|
||||
aKeyEvent->PreventDefault();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3049,6 +3049,7 @@ nsListControlFrame::DropDownToggleKey(nsIDOMEvent* aKeyEvent)
|
|||
PRBool isDroppedDown;
|
||||
mComboboxFrame->IsDroppedDown(&isDroppedDown);
|
||||
mComboboxFrame->ShowDropDown(!isDroppedDown);
|
||||
mComboboxFrame->RedisplaySelectedText();
|
||||
aKeyEvent->PreventDefault();
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче