| 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..a3729ca446095b15cd17c41cc1c7a7980f2086d3 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -2106,8 +2106,11 @@ static bool EnabledPaste(LocalFrame& frame,
|
|
|
| static bool EnabledRangeInEditableText(LocalFrame& frame,
|
| Event*,
|
| - EditorCommandSource) {
|
| + EditorCommandSource source) {
|
| frame.GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets();
|
| + if (source == kCommandFromMenuOrKeyBinding &&
|
| + !frame.Selection().SelectionHasFocus())
|
| + return false;
|
| return frame.Selection()
|
| .ComputeVisibleSelectionInDOMTreeDeprecated()
|
| .IsRange() &&
|
|
|