OSDN Git Service

Remove the WebTextView always when moving off a textfield.
authorLeon Scroggins <scroggo@google.com>
Tue, 11 Jan 2011 22:33:35 +0000 (17:33 -0500)
committerLeon Scroggins <scroggo@google.com>
Tue, 11 Jan 2011 22:35:36 +0000 (17:35 -0500)
Bug:3341272

Change-Id: Ibf00b2cb5a2c34eed9e5ac0355b59f8507ade446

WebKit/android/nav/WebView.cpp

index 8252bb8..08508e0 100644 (file)
@@ -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());