bug 283777 fix right-arrow selection regression in autocomplete r=mconnor, a=chase

This commit is contained in:
dveditz%cruzio.com 2005-04-12 19:39:25 +00:00
Родитель 861253a7b4
Коммит 81d97c7ee2
1 изменённых файлов: 2 добавлений и 3 удалений

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

@ -424,9 +424,8 @@ nsAutoCompleteController::HandleKeyNavigation(PRUint16 aKey, PRBool *_retval)
} else if (aKey == nsIAutoCompleteController::KEY_LEFT ||
aKey == nsIAutoCompleteController::KEY_RIGHT)
{
// When the user arrows to the side, close the popup
ClearSearchTimer();
ClosePopup();
// When the user arrows to the side select that value and close the popup
HandleEnter(_retval);
}
return NS_OK;