Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Bug 747492 - Don't show vkb when plugin is focused on Android r=cpete…

…rson a=blassey

--HG--
branch : MOBILE140_2012061216_RELBRANCH
  • Loading branch information...
commit 3173566cba426cd58aee6d11165321b35e074495 1 parent c0f9574
James Willcox authored
Showing with 10 additions and 1 deletion.
  1. +10 −1 widget/android/nsWindow.cpp
View
11 widget/android/nsWindow.cpp
@@ -2127,7 +2127,16 @@ nsWindow::SetInputContext(const InputContext& aContext,
return;
}
- AndroidBridge::NotifyIMEEnabled(int(aContext.mIMEState.mEnabled),
+ int enabled = int(aContext.mIMEState.mEnabled);
+
+ // Only show the virtual keyboard for plugins if mOpen is set appropriately.
+ // This avoids showing it whenever a plugin is focused. Bug 747492
+ if (aContext.mIMEState.mEnabled == IMEState::PLUGIN &&
+ aContext.mIMEState.mOpen != IMEState::OPEN) {
+ enabled = int(IMEState::DISABLED);
+ }
+
+ AndroidBridge::NotifyIMEEnabled(enabled,
aContext.mHTMLInputType,
aContext.mActionHint);
}
Please sign in to comment.
Something went wrong with that request. Please try again.