summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Scroggins <scroggo@google.com>2011-01-11 17:33:35 -0500
committerLeon Scroggins <scroggo@google.com>2011-01-11 17:35:36 -0500
commit4ba38126aa5964cd2e1922f3234c745032b5db59 (patch)
treefa3c128eb73ddf1b38f44f40b4770e4716aee8b9
parent354a67ba58009fa494d34c28980688a3ee292205 (diff)
downloadexternal_webkit-4ba38126aa5964cd2e1922f3234c745032b5db59.zip
external_webkit-4ba38126aa5964cd2e1922f3234c745032b5db59.tar.gz
external_webkit-4ba38126aa5964cd2e1922f3234c745032b5db59.tar.bz2
Remove the WebTextView always when moving off a textfield.
Bug:3341272 Change-Id: Ibf00b2cb5a2c34eed9e5ac0355b59f8507ade446
-rw-r--r--WebKit/android/nav/WebView.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/WebKit/android/nav/WebView.cpp b/WebKit/android/nav/WebView.cpp
index 8252bb8..08508e0 100644
--- a/WebKit/android/nav/WebView.cpp
+++ b/WebKit/android/nav/WebView.cpp
@@ -840,8 +840,9 @@ bool moveCursor(int keyCode, int count, bool ignoreScroll)
m_viewImpl->updateCursorBounds(root, cachedFrame, cachedNode);
root->setCursor(const_cast<CachedFrame*>(cachedFrame),
const_cast<CachedNode*>(cachedNode));
- bool clearTextEntry = cachedNode != root->currentFocus()
- && cachedNode->wantsKeyEvents();
+ const CachedNode* focus = root->currentFocus();
+ bool clearTextEntry = cachedNode != focus
+ && focus->isTextInput();
sendMoveMouseIfLatest(clearTextEntry);
sendMoveSelection((WebCore::Frame*) cachedFrame->framePointer(),
(WebCore::Node*) cachedNode->nodePointer());