| 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 03772a7b444d0c8704633a5c36e56cc5c05b2ec2..813d5f992f8045363614ab95afa2a12924b6126e 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -2068,7 +2068,8 @@ static bool EnabledDelete(LocalFrame& frame,
|
| EditorCommandSource source) {
|
| switch (source) {
|
| case kCommandFromMenuOrKeyBinding:
|
| - return frame.GetEditor().CanDelete();
|
| + return frame.Selection().SelectionHasFocus() &&
|
| + frame.GetEditor().CanDelete();
|
| case kCommandFromDOM:
|
| // "Delete" from DOM is like delete/backspace keypress, affects selected
|
| // range if non-empty, otherwise removes a character
|
|
|