diff options
| author | 2009-09-15 13:13:23 -0400 | |
|---|---|---|
| committer | 2009-09-15 13:24:33 -0400 | |
| commit | db6d939d2bbf457b1caa5479a60dae5e90d023e1 (patch) | |
| tree | 639c7db7e6bc8e3606a11a5879f00ce3f9a99dbb | |
| parent | df344375a93f3bfe0360f5436c0866f44b7fb6cc (diff) | |
if the cursor and focus don't match, match them on text view clicks
Call nativeMotionUp from touchUpOnTextField to move the
mouse cursor to the text field if necessary before moving
the text caret to the desired position.
Fixes http://b/issue?id=2075647
| -rw-r--r-- | core/java/android/webkit/WebView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 47a97b89063b..953fc3e1b8cf 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -4916,6 +4916,9 @@ public class WebView extends AbsoluteLayout // In case the soft keyboard has been dismissed, bring it back up. InputMethodManager.getInstance(getContext()).showSoftInput(mWebTextView, 0); + if (nativeFocusNodePointer() != nativeCursorNodePointer()) { + nativeMotionUp(x, y, mNavSlop); + } nativeTextInputMotionUp(x, y); } |