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

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

Issue 2777863003: [InputEvent] Distinguish between soft line and hard line (Closed)
Patch Set: Created 3 years, 9 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/CompositeEditCommand.cpp
diff --git a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
index 30d2a360795a7f5e2f02a65de66f975dd347e864..2fc8ab098b90cc4982a810dc6d71602ff4ab383e 100644
--- a/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
+++ b/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp
@@ -106,8 +106,10 @@ bool CompositeEditCommand::apply() {
case InputEvent::InputType::InsertCompositionText:
case InputEvent::InputType::DeleteWordBackward:
case InputEvent::InputType::DeleteWordForward:
- case InputEvent::InputType::DeleteLineBackward:
- case InputEvent::InputType::DeleteLineForward:
+ case InputEvent::InputType::DeleteSoftLineBackward:
+ case InputEvent::InputType::DeleteSoftLineForward:
+ case InputEvent::InputType::DeleteHardLineBackward:
+ case InputEvent::InputType::DeleteHardLineForward:
case InputEvent::InputType::DeleteContentBackward:
case InputEvent::InputType::DeleteContentForward:
case InputEvent::InputType::DeleteByCut:

Powered by Google App Engine
This is Rietveld 408576698