am f18c5393: set the selection after sending a click
Merge commit 'f18c539344655c8d39e3412a0985f7e42193eb52' into eclair-plus-aosp * commit 'f18c539344655c8d39e3412a0985f7e42193eb52': 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) {
|
/* package */ void passToJavaScript(String currentText, KeyEvent event) {
|
||||||
if (nativeCursorWantsKeyEvents() && !nativeCursorMatchesFocus()) {
|
if (nativeCursorWantsKeyEvents() && !nativeCursorMatchesFocus()) {
|
||||||
mWebViewCore.sendMessage(EventHub.CLICK);
|
mWebViewCore.sendMessage(EventHub.CLICK);
|
||||||
|
int select = nativeFocusCandidateIsTextField() ?
|
||||||
|
nativeFocusCandidateMaxLength() : 0;
|
||||||
|
setSelection(select, select);
|
||||||
}
|
}
|
||||||
WebViewCore.JSKeyData arg = new WebViewCore.JSKeyData();
|
WebViewCore.JSKeyData arg = new WebViewCore.JSKeyData();
|
||||||
arg.mEvent = event;
|
arg.mEvent = event;
|
||||||
|
|||||||
Reference in New Issue
Block a user