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

Unified Diff: third_party/WebKit/Source/core/input/EventHandler.cpp

Issue 1671103002: Prevent remaining keypress actions if textInput was canceled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use pageUp+space combination instead of timeout in layouttests Created 4 years, 10 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 | « third_party/WebKit/LayoutTests/fast/events/space-scroll-textinput-canceled-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/input/EventHandler.cpp
diff --git a/third_party/WebKit/Source/core/input/EventHandler.cpp b/third_party/WebKit/Source/core/input/EventHandler.cpp
index 5ec337e655cfa8a1cfe03b4df1cb535a050dfb01..dbab84518033fb7b5b6614555ed29859e78127fb 100644
--- a/third_party/WebKit/Source/core/input/EventHandler.cpp
+++ b/third_party/WebKit/Source/core/input/EventHandler.cpp
@@ -3555,7 +3555,7 @@ bool EventHandler::handleTextInputEvent(const String& text, Event* underlyingEve
event->setUnderlyingEvent(underlyingEvent);
target->dispatchEvent(event);
- return event->defaultHandled();
+ return event->defaultHandled() || event->defaultPrevented();
}
void EventHandler::defaultTextInputEventHandler(TextEvent* event)
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/events/space-scroll-textinput-canceled-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698