Bug 1205142 - Disable Android keyboard r=jchen
authorFabrice Desré <fabrice@mozilla.com>
Wed, 16 Sep 2015 09:24:17 -0700
changeset 295432 9cebdc6217c787c97c5bc0f4ed73de4890118456
parent 295431 e494bae119e4f99d002823ab3b7549eea8bc258d
child 295433 15fcb9fdaf59162ffec9b2014d977e67bc88925e
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjchen
bugs1205142
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1205142 - Disable Android keyboard r=jchen
widget/android/nsWindow.cpp
--- a/widget/android/nsWindow.cpp
+++ b/widget/android/nsWindow.cpp
@@ -2097,16 +2097,20 @@ nsWindow::NotifyIMEInternal(const IMENot
             return NS_ERROR_NOT_IMPLEMENTED;
     }
 }
 
 NS_IMETHODIMP_(void)
 nsWindow::SetInputContext(const InputContext& aContext,
                           const InputContextAction& aAction)
 {
+#ifdef MOZ_B2GDROID
+    // Disable the Android keyboard on b2gdroid.
+    return;
+#endif
     nsWindow *top = TopWindow();
     if (top && this != top) {
         // We are using an IME event later to notify Java, and the IME event
         // will be processed by the top window. Therefore, to ensure the
         // IME event uses the correct mInputContext, we need to let the top
         // window process SetInputContext
         top->SetInputContext(aContext, aAction);
         return;