EXT-7591 FIX Typing the first characters of a selection in a dropdown will ignore the first letter

clear the searchstring on list focus lost, not setFocus, so that the act of popping open the list when you type the first letter doesn't clear the first letter from the search string
meow-7.2.2
Richard Linden 2010-06-01 18:33:41 -07:00
parent 71fe767d9a
commit 8beb651d76
1 changed files with 3 additions and 1 deletions

View File

@ -2949,7 +2949,6 @@ BOOL LLScrollListCtrl::operateOnAll(EOperation op)
//virtual
void LLScrollListCtrl::setFocus(BOOL b)
{
mSearchString.clear();
// for tabbing into pristine scroll lists (Finder)
if (!getFirstSelected())
{
@ -2994,6 +2993,9 @@ void LLScrollListCtrl::onFocusLost()
{
gFocusMgr.setMouseCapture(NULL);
}
mSearchString.clear();
LLUICtrl::onFocusLost();
}