Bug 245096 Clicking on combo box inhibits change event patch in bug 244761 r/sr=roc

This commit is contained in:
neil%parkwaycc.co.uk 2004-05-31 23:22:08 +00:00
Родитель 8c46b7fe3b
Коммит 1422fe45d0
2 изменённых файлов: 12 добавлений и 8 удалений

Просмотреть файл

@ -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) {