Bug 619679 - [Maemo] Dismissing the virtual keyboard causes issues. r=enndeakin, a=approval2.0

This commit is contained in:
Vivien Nicolas 2011-01-28 11:41:03 -08:00
parent 0c5bc35158
commit 5ce46c2ce7

View File

@ -331,9 +331,13 @@ nsAutoCompleteController::HandleStartComposition()
PRBool isOpen = PR_FALSE;
input->GetPopupOpen(&isOpen);
if (isOpen)
if (isOpen) {
ClosePopup();
mPopupClosedByCompositionStart = isOpen;
PRBool stillOpen = PR_FALSE;
input->GetPopupOpen(&stillOpen);
mPopupClosedByCompositionStart = !stillOpen;
}
return NS_OK;
}