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.
This commit is contained in:
Cary Clark
2009-06-12 17:33:37 -04:00
parent 1324d5b32c
commit f958fccf47

View File

@@ -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);