mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 747492 - Don't show vkb when plugin is focused on Android r=cpeterson
This commit is contained in:
parent
b755e5a29b
commit
3f58ad3be0
@ -2084,7 +2084,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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user