Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Issue 2887213002: Make EnabledDelete return false for user-triggered command and unfocused selection (Closed)

Created:
3 years, 7 months ago by Xiaocheng
Modified:
3 years, 7 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -1 line) Patch
A third_party/WebKit/LayoutTests/editing/deleting/delete_with_unfocused_selection.html View 1 chunk +45 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 16 (12 generated)
Xiaocheng
PTAL.
3 years, 7 months ago (2017-05-18 00:08:05 UTC) #9
yosin_UTC9
lgtm
3 years, 7 months ago (2017-05-18 01:00:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887213002/1
3 years, 7 months ago (2017-05-18 01:01:48 UTC) #13
commit-bot: I haz the power
3 years, 7 months ago (2017-05-18 03:43:18 UTC) #16
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/f1eefca818771900ae2977d86952...

Powered by Google App Engine
This is Rietveld 408576698