mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 821229 - Don't show/hide VKB when Gecko view doesn't have focus; r=cpeterson
This commit is contained in:
parent
8cf52c1bb6
commit
b1f7dd58ee
@ -517,6 +517,14 @@ class GeckoInputConnection
|
||||
mIMEModeHint = (modeHint == null) ? "" : modeHint;
|
||||
mIMEActionHint = (actionHint == null) ? "" : actionHint;
|
||||
|
||||
View v = getView();
|
||||
if (v == null || !v.hasFocus()) {
|
||||
// When using Find In Page, we can still receive notifyIMEEnabled calls due to the
|
||||
// selection changing when highlighting. However in this case we don't want to reset/
|
||||
// show/hide the keyboard because the find box has the focus and is taking input from
|
||||
// the keyboard.
|
||||
return;
|
||||
}
|
||||
restartInput();
|
||||
GeckoApp.mAppContext.mMainHandler.postDelayed(new Runnable() {
|
||||
public void run() {
|
||||
|
Loading…
Reference in New Issue
Block a user