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:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user