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

Commit 10be4fc6 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Do not hide the soft keyboard when the DOM has moved focus.

Instead of calling remove(), which would hide the soft
keyboard, remove the WebTextView manually, so the soft
keyboard remains up (if it was up to begin with).  WebView
will properly handle the keys now that the focus has
changed.
parent 10c7a4da
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -118,7 +118,11 @@ import java.util.ArrayList;

        if (!isArrowKey && mWebView.nativeFocusNodePointer() != mNodePointer) {
            mWebView.nativeClearCursor();
            remove();
            // Do not call remove() here, which hides the soft keyboard.  If
            // the soft keyboard is being displayed, the user will still want
            // it there.
            mWebView.removeView(this);
            mWebView.requestFocus();
            return mWebView.dispatchKeyEvent(event);
        }