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

Commit f958fccf authored by Cary Clark's avatar Cary Clark
Browse files

send click in webview before sending key

Add click check to passToJavaScript if webTextView
receives a key but the field does not yet have webkit focus.
parent 1324d5b3
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);