diff options
author | Leon Scroggins <scroggo@google.com> | 2010-02-24 16:49:35 -0500 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2010-02-25 12:49:29 -0500 |
commit | 0aa341f0d1b8729c0b65adedcd1738d87d7a448a (patch) | |
tree | ba15ddfa424b8062ce19083fabce7859b0f4d2d0 /core | |
parent | e379710cc5914c7ed10e9236079ec7f02c99ee4e (diff) | |
download | frameworks_base-0aa341f0d1b8729c0b65adedcd1738d87d7a448a.zip frameworks_base-0aa341f0d1b8729c0b65adedcd1738d87d7a448a.tar.gz frameworks_base-0aa341f0d1b8729c0b65adedcd1738d87d7a448a.tar.bz2 |
When opening the IME or sending a key to a non-cursored textfield, set the default selection.
Fix for http://b/issue?id=2431351
Diffstat (limited to 'core')
-rw-r--r-- | core/java/android/webkit/WebView.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index c1a4a49..b13fc75 100644 --- a/core/java/android/webkit/WebView.java +++ b/core/java/android/webkit/WebView.java @@ -3369,6 +3369,7 @@ public class WebView extends AbsoluteLayout if (isTextView) { rebuildWebTextView(); if (inEditingMode()) { + mWebTextView.setDefaultSelection(); imm.showSoftInput(mWebTextView, 0); if (zoom) { didUpdateTextViewBounds(true); @@ -3686,6 +3687,7 @@ public class WebView extends AbsoluteLayout // might be. Check it, and if so, hand over to the WebTextView. rebuildWebTextView(); if (inEditingMode()) { + mWebTextView.setDefaultSelection(); return mWebTextView.dispatchKeyEvent(event); } } |