diff options
author | Leon Scroggins <scroggo@google.com> | 2009-07-20 14:26:37 -0400 |
---|---|---|
committer | Leon Scroggins <scroggo@google.com> | 2009-07-20 14:26:37 -0400 |
commit | 10be4fc63a0d43262f1cfeac3b4a7904fa8fbc14 (patch) | |
tree | e15180acfbe628052dd98caa549e8e98c952f836 /core/java | |
parent | 10c7a4da566e9faed84745b75e74b9d1cb410e3f (diff) | |
download | frameworks_base-10be4fc63a0d43262f1cfeac3b4a7904fa8fbc14.zip frameworks_base-10be4fc63a0d43262f1cfeac3b4a7904fa8fbc14.tar.gz frameworks_base-10be4fc63a0d43262f1cfeac3b4a7904fa8fbc14.tar.bz2 |
Do not hide the soft keyboard when the DOM has moved focus.
Instead of calling remove(), which would hide the soft
keyboard, remove the WebTextView manually, so the soft
keyboard remains up (if it was up to begin with). WebView
will properly handle the keys now that the focus has
changed.
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/webkit/WebTextView.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/java/android/webkit/WebTextView.java b/core/java/android/webkit/WebTextView.java index 2be7485..da1443c 100644 --- a/core/java/android/webkit/WebTextView.java +++ b/core/java/android/webkit/WebTextView.java @@ -118,7 +118,11 @@ import java.util.ArrayList; if (!isArrowKey && mWebView.nativeFocusNodePointer() != mNodePointer) { mWebView.nativeClearCursor(); - remove(); + // Do not call remove() here, which hides the soft keyboard. If + // the soft keyboard is being displayed, the user will still want + // it there. + mWebView.removeView(this); + mWebView.requestFocus(); return mWebView.dispatchKeyEvent(event); } |