Bring up the soft keyboard when touching a focused textfield.
Fix for http://b/issue?id=2118333 Change-Id: Ifa540de139b35548dde2b714b628ca1879a605c5
This commit is contained in:
@@ -4885,6 +4885,9 @@ public class WebView extends AbsoluteLayout
|
|||||||
}
|
}
|
||||||
int x = viewToContentX((int) event.getX() + mWebTextView.getLeft());
|
int x = viewToContentX((int) event.getX() + mWebTextView.getLeft());
|
||||||
int y = viewToContentY((int) event.getY() + mWebTextView.getTop());
|
int y = viewToContentY((int) event.getY() + mWebTextView.getTop());
|
||||||
|
// In case the soft keyboard has been dismissed, bring it back up.
|
||||||
|
InputMethodManager.getInstance(getContext()).showSoftInput(mWebTextView,
|
||||||
|
0);
|
||||||
nativeTextInputMotionUp(x, y);
|
nativeTextInputMotionUp(x, y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user