Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1365)

Unified Diff: Source/core/page/EventHandler.cpp

Issue 364193002: Cursor does not blink on longpress in an emptyField. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/EventHandler.cpp
diff --git a/Source/core/page/EventHandler.cpp b/Source/core/page/EventHandler.cpp
index 1362f6b65a3d329c85fa0941c15ee9f43b6d1aa3..4797abfe799688f3ef959bdddf68cf5cf99c123b 100644
--- a/Source/core/page/EventHandler.cpp
+++ b/Source/core/page/EventHandler.cpp
@@ -3045,6 +3045,11 @@ static FocusType focusDirectionForKey(const AtomicString& keyIdentifier)
void EventHandler::defaultKeyboardEventHandler(KeyboardEvent* event)
{
if (event->type() == EventTypeNames::keydown) {
+ // Clear caret blinking suspended state to make sure that caret blinks
+ // when we type again after long pressing on an empty input field.
+ if (m_frame && m_frame->selection().isCaretBlinkingSuspended())
+ m_frame->selection().setCaretBlinkingSuspended(false);
+
m_frame->editor().handleKeyboardEvent(event);
if (event->defaultHandled())
return;
« no previous file with comments | « no previous file | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698