summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2009-10-15 13:28:27 -0400
committerLeon Scroggins <scroggo@google.com>2009-10-15 15:44:37 -0400
commitbe3feda46eac18a05aaea47d7ef34b611f8be6be (patch)
tree9819d95381744a98934bd6b2a4107d9e2f173e58
parent9f2088240272086cd9eb94d01b1872a1088b76f2 (diff)
downloadframeworks_base-be3feda46eac18a05aaea47d7ef34b611f8be6be.zip
frameworks_base-be3feda46eac18a05aaea47d7ef34b611f8be6be.tar.gz
frameworks_base-be3feda46eac18a05aaea47d7ef34b611f8be6be.tar.bz2
Do not show soft keyboard for readonly textfields.
Part of a fix for http://b/issue?id=2159869. The request to show the soft input has been moved to nativeTextInputMotionUp, where it can check if the input field is readOnly. This way it is also handled by shortPressOnTextField, for when a user shortpresses on the field.
-rw-r--r--core/java/android/webkit/WebView.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 9798c01..06ab14d 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -4672,9 +4672,6 @@ public class WebView extends AbsoluteLayout
}
int x = viewToContentX((int) event.getX() + mWebTextView.getLeft());
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);
if (nativeFocusNodePointer() != nativeCursorNodePointer()) {
nativeMotionUp(x, y, mNavSlop);
}