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

Commit 0aa341f0 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

When opening the IME or sending a key to a non-cursored textfield, set the default selection.

parent e379710c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3369,6 +3369,7 @@ public class WebView extends AbsoluteLayout
        if (isTextView) {
            rebuildWebTextView();
            if (inEditingMode()) {
                mWebTextView.setDefaultSelection();
                imm.showSoftInput(mWebTextView, 0);
                if (zoom) {
                    didUpdateTextViewBounds(true);
@@ -3686,6 +3687,7 @@ public class WebView extends AbsoluteLayout
            // might be.  Check it, and if so, hand over to the WebTextView.
            rebuildWebTextView();
            if (inEditingMode()) {
                mWebTextView.setDefaultSelection();
                return mWebTextView.dispatchKeyEvent(event);
            }
        }