Chromium Code Reviews
DescriptionMake EnableCaretInEditableText 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 Transpose command.
BUG=722925
TEST=editing/execCommand/transpose_with_unfocused_selection.html
Review-Url: https://codereview.chromium.org/2887213003
Cr-Commit-Position: refs/heads/master@{#472668}
Committed: https://chromium.googlesource.com/chromium/src/+/1f462b4e66919d4104355e3883bf81b541f8754e
Patch Set 1 #
Messages
Total messages: 16 (12 generated)
|
||||||||||||||||||||||||||||