Bug 749120 - Fix hiding the keyboard from Flash on Android a=blassey
authorJames Willcox <jwillcox@mozilla.com>
Thu, 26 Apr 2012 16:52:05 -0400
changeset 95563 8d74d509b936e4111bc9eeed75d1aa3c52940763
parent 95562 b1efdb47182166e9a5538c8cfb414de057f115f5
child 95564 3c87865c60ab6010a3ac10a80645023170f982ff
push id886
push userlsblakk@mozilla.com
push dateMon, 04 Jun 2012 19:57:52 +0000
treeherdermozilla-beta@bbd8d5efd6d1 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersblassey
bugs749120
milestone14.0a2
Bug 749120 - Fix hiding the keyboard from Flash on Android a=blassey
dom/plugins/base/android/ANPWindow.cpp
--- a/dom/plugins/base/android/ANPWindow.cpp
+++ b/dom/plugins/base/android/ANPWindow.cpp
@@ -62,17 +62,17 @@ anp_window_clearVisibleRects(NPP instanc
 {
   NOT_IMPLEMENTED();
 }
 
 void
 anp_window_showKeyboard(NPP instance, bool value)
 {
   InputContext context;
-  context.mIMEState.mEnabled = IMEState::PLUGIN;
+  context.mIMEState.mEnabled = value ? IMEState::PLUGIN : IMEState::DISABLED;
   context.mIMEState.mOpen = value ? IMEState::OPEN : IMEState::CLOSED;
   context.mActionHint.Assign(EmptyString());
 
   InputContextAction action;
   action.mCause = InputContextAction::CAUSE_UNKNOWN;
   action.mFocusChange = InputContextAction::FOCUS_NOT_CHANGED;
 
   nsWindow* window = nsWindow::TopWindow();