Merge commit 'f28ffd0688d83c019e74a7d32759d5734396baa4' * commit 'f28ffd0688d83c019e74a7d32759d5734396baa4': set the selection after sending a click
This commit is contained in:
@@ -4766,6 +4766,9 @@ public class WebView extends AbsoluteLayout
|
||||
/* package */ void passToJavaScript(String currentText, KeyEvent event) {
|
||||
if (nativeCursorWantsKeyEvents() && !nativeCursorMatchesFocus()) {
|
||||
mWebViewCore.sendMessage(EventHub.CLICK);
|
||||
int select = nativeFocusCandidateIsTextField() ?
|
||||
nativeFocusCandidateMaxLength() : 0;
|
||||
setSelection(select, select);
|
||||
}
|
||||
WebViewCore.JSKeyData arg = new WebViewCore.JSKeyData();
|
||||
arg.mEvent = event;
|
||||
|
||||
Reference in New Issue
Block a user