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

Unified Diff: third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp

Issue 2558643003: [InputEvent] Move 'beforeinput' logic into |CompositeEditCommand::willApplyEditing()| (3/3) (Closed)
Patch Set: yosin's review, fix nits Created 4 years 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
Index: third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp b/third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp
index 761d9a136a7b0f8ce6a0b2203d0fd7ecb3f42460..8b73a0dfa4034ed60d732eea6db64b1242d197e5 100644
--- a/third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp
+++ b/third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp
@@ -60,11 +60,6 @@ bool Editor::handleEditingKeyboardEvent(KeyboardEvent* evt) {
if (!behavior().shouldInsertCharacter(*evt) || !canEdit())
return false;
- // Return true to prevent default action. e.g. Space key scroll.
- if (dispatchBeforeInputInsertText(evt->target(), keyEvent->text) !=
- DispatchEventResult::NotCanceled)
- return true;
-
return insertText(keyEvent->text, evt);
}

Powered by Google App Engine
This is Rietveld 408576698