am db6d939d: if the cursor and focus don\'t match, match them on text view clicks

Merge commit 'db6d939d2bbf457b1caa5479a60dae5e90d023e1' into eclair-plus-aosp

* commit 'db6d939d2bbf457b1caa5479a60dae5e90d023e1':
  if the cursor and focus don't match, match them on text view clicks
This commit is contained in:
Cary Clark
2009-09-15 10:40:54 -07:00
committed by Android Git Automerger

View File

@@ -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);
}