From be3feda46eac18a05aaea47d7ef34b611f8be6be Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Thu, 15 Oct 2009 13:28:27 -0400 Subject: [PATCH] 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. --- core/java/android/webkit/WebView.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java index 9798c017d4cf4..06ab14d8a814b 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); }