When clicking away from the dropdown, it wasn't resetting itself correctly.

If only the mouse was being used for selection, then it needs to reset itself to the state before dropping down
if arrow keys had been used then it needs to keep that selection
The combobox chaches the current selection, so when arrow keys are used it has the correct selection
when the mouse is used it holds the old selection. So therefore, we can compare against it
to determine what to do.
Bug 63247
r=waqar sr=hyatt


git-svn-id: svn://10.0.0.236/trunk@83918 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
2000-12-20 23:25:40 +00:00
parent 9061f908ca
commit 2d35ca6701
8 changed files with 98 additions and 8 deletions

View File

@@ -1939,6 +1939,13 @@ nsComboboxControlFrame::SelectionChanged()
return rv;
}
NS_IMETHODIMP
nsComboboxControlFrame::GetIndexOfDisplayArea(PRInt32* aSelectedIndex)
{
NS_ENSURE_ARG_POINTER(aSelectedIndex);
*aSelectedIndex = mSelectedIndex;
return NS_OK;
}
//----------------------------------------------------------------------
// nsISelectControlFrame