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

Commit be3feda4 authored by Leon Scroggins's avatar Leon Scroggins
Browse files

Do not show soft keyboard for readonly textfields.

Part of a fix for http://b/issue?id=2159869.  The request to show
the soft input has been moved to nativeTextInputMotionUp, where it
can check if the input field is readOnly.  This way it is also
handled by shortPressOnTextField, for when a user shortpresses
on the field.
parent 9f208824
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -4672,9 +4672,6 @@ public class WebView extends AbsoluteLayout
        }
        int x = viewToContentX((int) event.getX() + mWebTextView.getLeft());
        int y = viewToContentY((int) event.getY() + mWebTextView.getTop());
        // In case the soft keyboard has been dismissed, bring it back up.
        InputMethodManager.getInstance(getContext()).showSoftInput(mWebTextView,
                0);
        if (nativeFocusNodePointer() != nativeCursorNodePointer()) {
            nativeMotionUp(x, y, mNavSlop);
        }