Bug 619679 - [Maemo] Dismissing the virtual keyboard causes issues. r=enndeakin, a=approval2.0
authorVivien Nicolas <21@vingtetun.org>
Fri, 28 Jan 2011 11:41:03 -0800
changeset 61559 53a26f3050bc2d8d5a0405b06ba2de56218af18e
parent 61558 120b98a578ee89845d2d671db512ea7452aa15bb
child 61560 7cf9d28a0a4064b183754e949b0f515327aec2bc
push id1
push userroot
push dateTue, 10 Dec 2013 15:46:25 +0000
reviewersenndeakin, approval2
bugs619679
milestone2.0b11pre
Bug 619679 - [Maemo] Dismissing the virtual keyboard causes issues. r=enndeakin, a=approval2.0
toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
--- a/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
+++ b/toolkit/components/autocomplete/src/nsAutoCompleteController.cpp
@@ -326,19 +326,23 @@ nsAutoCompleteController::HandleStartCom
   if (disabled)
     return NS_OK;
 
   // Stop all searches in case they are async.
   StopSearch();
 
   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;
 }
 
 NS_IMETHODIMP
 nsAutoCompleteController::HandleEndComposition()
 {
   NS_ENSURE_TRUE(mIsIMEComposing, NS_OK);