mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 679149 - VKB jumping too much on maemo r=dougt
This commit is contained in:
parent
b8b167b6ff
commit
5dc9ffb8ac
@ -3092,9 +3092,22 @@ nsWindow::SetInputMode(const IMEContext& aContext)
|
||||
NS_ENSURE_TRUE(mWidget, NS_ERROR_FAILURE);
|
||||
|
||||
mIMEContext = aContext;
|
||||
|
||||
// Ensure that opening the virtual keyboard is allowed for this specific
|
||||
// IMEContext depending on the content.ime.strict.policy pref
|
||||
if (aContext.mStatus != nsIWidget::IME_STATUS_DISABLED &&
|
||||
aContext.mStatus != nsIWidget::IME_STATUS_PLUGIN) {
|
||||
if (Preferences::GetBool("content.ime.strict_policy", PR_FALSE) &&
|
||||
!aContext.FocusMovedByUser() &&
|
||||
aContext.FocusMovedInContentProcess()) {
|
||||
return NS_OK;
|
||||
}
|
||||
}
|
||||
|
||||
switch (aContext.mStatus) {
|
||||
case nsIWidget::IME_STATUS_ENABLED:
|
||||
case nsIWidget::IME_STATUS_PASSWORD:
|
||||
case nsIWidget::IME_STATUS_PLUGIN:
|
||||
{
|
||||
PRInt32 openDelay =
|
||||
Preferences::GetInt("ui.vkb.open.delay", 200);
|
||||
|
Loading…
Reference in New Issue
Block a user