summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCary Clark <cary@android.com>2009-09-15 13:13:23 -0400
committerCary Clark <cary@android.com>2009-09-15 13:24:33 -0400
commitdb6d939d2bbf457b1caa5479a60dae5e90d023e1 (patch)
tree639c7db7e6bc8e3606a11a5879f00ce3f9a99dbb
parentdf344375a93f3bfe0360f5436c0866f44b7fb6cc (diff)
downloadframeworks_base-db6d939d2bbf457b1caa5479a60dae5e90d023e1.zip
frameworks_base-db6d939d2bbf457b1caa5479a60dae5e90d023e1.tar.gz
frameworks_base-db6d939d2bbf457b1caa5479a60dae5e90d023e1.tar.bz2
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.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 47a97b8..953fc3e 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);
}