| 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 03a3aa44e59366023459af77a6d31442871996b8..ed97501e425eda2b027590fe30bcaafa991c60ea 100644
|
| --- a/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| +++ b/third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp
|
| @@ -2051,8 +2051,11 @@ static bool EnabledCut(LocalFrame& frame, Event*, EditorCommandSource source) {
|
|
|
| static bool EnabledInEditableText(LocalFrame& frame,
|
| Event* event,
|
| - EditorCommandSource) {
|
| + EditorCommandSource source) {
|
| frame.GetDocument()->UpdateStyleAndLayoutIgnorePendingStylesheets();
|
| + if (source == kCommandFromMenuOrKeyBinding &&
|
| + !frame.Selection().SelectionHasFocus())
|
| + return false;
|
| return frame.GetEditor().SelectionForCommand(event).RootEditableElement();
|
| }
|
|
|
|
|