Bug 1409113 - Relax the user input requirement in order to show VKB on Android r=jchen draft
authorJames Willcox <snorp@snorp.net>
Tue, 21 Nov 2017 16:28:42 -0600
changeset 702000 f3ba5f48dd44b840244d68c33ba150b6311e786c
parent 701999 b8c9c647f5a7c96646a0853cad8dfcd344a2c382
child 741324 ef6742f266df4c72c19b94dc28176b771774e1ef
push id90336
push userbmo:snorp@snorp.net
push dateWed, 22 Nov 2017 15:03:48 +0000
reviewersjchen
bugs1409113
milestone59.0a1
Bug 1409113 - Relax the user input requirement in order to show VKB on Android r=jchen MozReview-Commit-ID: 4lvuGFyWj76
widget/android/GeckoEditableSupport.cpp
--- a/widget/android/GeckoEditableSupport.cpp
+++ b/widget/android/GeckoEditableSupport.cpp
@@ -1374,17 +1374,17 @@ GeckoEditableSupport::SetInputContext(co
     }
 
     if (mIMEUpdatingContext) {
         return;
     }
     mIMEUpdatingContext = true;
 
     RefPtr<GeckoEditableSupport> self(this);
-    bool isUserAction = aAction.IsHandlingUserInput();
+    bool isUserAction = aAction.IsHandlingUserInput() || aContext.mHasHandledUserInput;
     nsAppShell::PostEvent([this, self, isUserAction] {
         nsCOMPtr<nsIWidget> widget = GetWidget();
 
         mIMEUpdatingContext = false;
         if (!widget || widget->Destroyed()) {
             return;
         }
         mEditable->NotifyIMEContext(mInputContext.mIMEState.mEnabled,