Chromium Code Reviews
DescriptionMake EnabledDelete 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 EnabledDelete() to fix
the behavior of the 'Delete' command.
BUG=722925
TEST=editing/deleting/delete_with_unfocsed_selection.html
Review-Url: https://codereview.chromium.org/2887213002
Cr-Commit-Position: refs/heads/master@{#472644}
Committed: https://chromium.googlesource.com/chromium/src/+/f1eefca818771900ae2977d86952d42cb3b7fcb2
Patch Set 1 #
Messages
Total messages: 16 (12 generated)
|
||||||||||||||||||||||||||||