Index: third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp |
diff --git a/third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp b/third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp |
index d47649377322c1c9f37b38bb215d4c18e85874b6..214d50e15e579d252f4b0d7c0bd693107681eafd 100644 |
--- a/third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp |
+++ b/third_party/WebKit/Source/core/editing/EditorKeyBindings.cpp |
@@ -66,15 +66,10 @@ bool Editor::HandleEditingKeyboardEvent(KeyboardEvent* evt) { |
// We may lose focused element by |command.execute(evt)|. |
return false; |
} |
- if (!focused_element->ContainsIncludingHostElements( |
- *frame_->Selection() |
- .ComputeVisibleSelectionInDOMTreeDeprecated() |
- .Start() |
- .ComputeContainerNode())) { |
- // We should not insert text at selection start if selection doesn't have |
- // focus. See http://crbug.com/89026 |
+ // We should not insert text at selection start if selection doesn't have |
+ // focus. |
+ if (!frame_->Selection().SelectionHasFocus()) |
return false; |
- } |
// Return true to prevent default action. e.g. Space key scroll. |
if (DispatchBeforeInputInsertText(evt->target()->ToNode(), key_event->text) != |