Bug 1409113 - Relax the user input requirement in order to show VKB on Android r=jchen a=Sylvestre
authorJames Willcox <snorp@snorp.net>
Tue, 21 Nov 2017 16:28:42 -0600
changeset 444923 d0eadbf8ab5bda4be4aecdbb08df007e138760c1
parent 444922 c97b0b34d8cc61d33138ee8b9ad73c5c2c21fea2
child 444924 20b45a6b07c3284145fcb7dd9d1b62e2354ce990
push id1618
push userCallek@gmail.com
push dateThu, 11 Jan 2018 17:45:48 +0000
treeherdermozilla-release@882ca853e05a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen, Sylvestre
bugs1409113
milestone58.0
Bug 1409113 - Relax the user input requirement in order to show VKB on Android r=jchen a=Sylvestre MozReview-Commit-ID: 4lvuGFyWj76
widget/android/GeckoEditableSupport.cpp
--- a/widget/android/GeckoEditableSupport.cpp
+++ b/widget/android/GeckoEditableSupport.cpp
@@ -1367,17 +1367,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,