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

Commit 89dfa08f authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change 4100

* changes:
  send click in webview before sending key
parents 75543702 f958fccf
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4525,6 +4525,9 @@ public class WebView extends AbsoluteLayout
    }

    /* package */ void passToJavaScript(String currentText, KeyEvent event) {
        if (nativeCursorWantsKeyEvents() && !nativeCursorMatchesFocus()) {
            mWebViewCore.sendMessage(EventHub.CLICK);
        }
        HashMap arg = new HashMap();
        arg.put("event", event);
        arg.put("currentText", currentText);