Chromium Code Reviews
DescriptionMake EnabledRangeInRichlyEditableText return false for user-triggered command and unfocused selection
Certain editing commands shouldn't be enabled when they are user-triggered and
the selection doesn't have focus. This patch adds checking of
FrameSelection::SelectionHasFocus() in EnabledRangeInEditableText() to fix
the behavior of the Unlink command.
BUG=722925
TEST=editing/execCommand/unlink_with_unfocused_selection.html
Review-Url: https://codereview.chromium.org/2889963003
Cr-Commit-Position: refs/heads/master@{#472696}
Committed: https://chromium.googlesource.com/chromium/src/+/b2dde8c244c58dcf6d38d812ca064f911b1b0fe6
Patch Set 1 #
Messages
Total messages: 16 (12 generated)
|
||||||||||||||||||||||||||||