Chromium Code Reviews
DescriptionMake EnabledRangeInEditableText 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 RemoveFormat command.
BUG=722925
TEST=editing/execCommand/remove_format_with_unfocused_selection.html
Review-Url: https://codereview.chromium.org/2893713003
Cr-Commit-Position: refs/heads/master@{#472635}
Committed: https://chromium.googlesource.com/chromium/src/+/8aaa656f06ce8379a55bf81fa4cdca123ff43485
Patch Set 1 #
Messages
Total messages: 17 (13 generated)
|
||||||||||||||||||||||||||||