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

Unified Diff: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp

Issue 2074423004: [InputEvent] Dispatch 'input' event for ContentEditable and typing on Input element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dispatch scoped 'input' event Created 4 years, 6 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
Index: third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
index 5c5f415d3187d909368a021d2ec52ab3580b5816..fa0e7992a139a63208febe7aba79d2f1fb557839 100644
--- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
@@ -108,6 +108,8 @@ WebEditingCommandType WebEditingCommandTypeFromCommandName(const String& command
InputEvent::InputType InputTypeFromCommandType(WebEditingCommandType commandType)
{
switch (commandType) {
+ case WebEditingCommandType::Bold:
+ return InputEvent::InputType::Bold;
case WebEditingCommandType::Delete:
case WebEditingCommandType::DeleteBackward:
case WebEditingCommandType::DeleteBackwardByDecomposingPreviousCharacter:

Powered by Google App Engine
This is Rietveld 408576698