| Index: third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| diff --git a/third_party/WebKit/Source/core/editing/InputMethodController.cpp b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| index 0d88e0f740a014a088b732b6340f8ca8bef0e15e..3b034572e9fa67df045e0757f140bfd7e05cf622 100644
|
| --- a/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/InputMethodController.cpp
|
| @@ -463,8 +463,9 @@ void InputMethodController::extendSelectionAndDelete(int before, int after)
|
| break;
|
| ++before;
|
| } while (frame().selection().start() == frame().selection().end() && before <= static_cast<int>(selectionOffsets.start()));
|
| - // TODO(chongz): According to spec |data| should be "forward" or "backward".
|
| - dispatchBeforeInputEditorCommand(frame().document()->focusedElement(), InputEvent::InputType::DeleteContent);
|
| + // TODO(chongz): New spec might want to change InputType.
|
| + // https://github.com/w3c/editing/issues/125#issuecomment-213041256
|
| + dispatchBeforeInputEditorCommand(frame().document()->focusedElement(), InputEvent::InputType::DeleteContent, emptyString(), HeapVector<Member<Range>>(1, frame().selection().firstRange()));
|
| TypingCommand::deleteSelection(*frame().document());
|
| }
|
|
|
|
|