From 4ba38126aa5964cd2e1922f3234c745032b5db59 Mon Sep 17 00:00:00 2001 From: Leon Scroggins Date: Tue, 11 Jan 2011 17:33:35 -0500 Subject: Remove the WebTextView always when moving off a textfield. Bug:3341272 Change-Id: Ibf00b2cb5a2c34eed9e5ac0355b59f8507ade446 --- WebKit/android/nav/WebView.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'WebKit/android/nav/WebView.cpp') 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), const_cast(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()); -- cgit v1.1