Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c84bf0a authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Restart input when moving to a new textfield.

Ensures that the IME action gets updated properly.

Fixes http://b/issue?id=2428023
parent 44d99379
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -3379,6 +3379,10 @@ public class WebView extends AbsoluteLayout
                text = "";
            }
            mWebTextView.setTextAndKeepSelection(text);
            InputMethodManager imm = InputMethodManager.peekInstance();
            if (imm != null && imm.isActive(mWebTextView)) {
                imm.restartInput(mWebTextView);
            }
        }
        mWebTextView.requestFocus();
    }