Hi All, I have an app that just contains a webview. I want a specific
input to be selected when the user presses the Search button, and I
want the soft keyboard to come up. When I set focus via javascript:
@Override
public boolean onSearchRequested() {
webview.loadUrl("javascript:$('#search_input').setFocus();");
webview.requestFocus();
return false; // Returning false tells the application not to
display a menu
}
The input gains focus, but it doesn't have an orange box around it
like it usually does when it gains focus from touch and the soft
keyboard doesn't come up.
(In some bug reports it indicates that I am supposed to use
webview.requestFocus(), but that just gives focus to the first element
in the html, and doesn't bring up any keyboard either.)
Thanks for any help
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en