I am trying to send return key (keyCode 13) to focused input element (type = text) inside WebView. Using mWebView.loadUrl for that purpose. I can't understand why the following is not working:
var e = jQuery.Event(\"keypress\")
e.which = 13;
$(document.activeElement).trigger(e);
My document.activeElement is properly initialized as I can do document.activeElement.value = 'some value'; and it displays inside WebView correctly.
0 comments:
Post a Comment