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; |