зеркало из https://github.com/mozilla/pjs.git
Bug 245096 Clicking on combo box inhibits change event patch in bug 244761 r/sr=roc
This commit is contained in:
Родитель
8c46b7fe3b
Коммит
1422fe45d0
|
@ -493,11 +493,13 @@ nsComboboxControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
|
|||
{
|
||||
if (aOn) {
|
||||
nsListControlFrame::ComboboxFocusSet();
|
||||
mFocused = this;
|
||||
if (mFocused != this) {
|
||||
mFocused = this;
|
||||
|
||||
// Store up the selected index so when we lose focus we can see if it's
|
||||
// really changed
|
||||
mListControlFrame->GetSelectedIndex(&mRecentSelectedIndex);
|
||||
// Store up the selected index so when we lose focus we can see if it's
|
||||
// really changed
|
||||
mListControlFrame->GetSelectedIndex(&mRecentSelectedIndex);
|
||||
}
|
||||
} else {
|
||||
mFocused = nsnull;
|
||||
if (mDroppedDown) {
|
||||
|
|
|
@ -493,11 +493,13 @@ nsComboboxControlFrame::SetFocus(PRBool aOn, PRBool aRepaint)
|
|||
{
|
||||
if (aOn) {
|
||||
nsListControlFrame::ComboboxFocusSet();
|
||||
mFocused = this;
|
||||
if (mFocused != this) {
|
||||
mFocused = this;
|
||||
|
||||
// Store up the selected index so when we lose focus we can see if it's
|
||||
// really changed
|
||||
mListControlFrame->GetSelectedIndex(&mRecentSelectedIndex);
|
||||
// Store up the selected index so when we lose focus we can see if it's
|
||||
// really changed
|
||||
mListControlFrame->GetSelectedIndex(&mRecentSelectedIndex);
|
||||
}
|
||||
} else {
|
||||
mFocused = nsnull;
|
||||
if (mDroppedDown) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче