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
This commit is contained in:
Cary Clark
2009-09-15 13:13:23 -04:00
parent df344375a9
commit db6d939d2b

View File

@@ -4916,6 +4916,9 @@ public class WebView extends AbsoluteLayout
// In case the soft keyboard has been dismissed, bring it back up. // In case the soft keyboard has been dismissed, bring it back up.
InputMethodManager.getInstance(getContext()).showSoftInput(mWebTextView, InputMethodManager.getInstance(getContext()).showSoftInput(mWebTextView,
0); 0);
if (nativeFocusNodePointer() != nativeCursorNodePointer()) {
nativeMotionUp(x, y, mNavSlop);
}
nativeTextInputMotionUp(x, y); nativeTextInputMotionUp(x, y);
} }