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

Issue 2609943004: MacViews: Don't click views::Link on pressing Return key. (Closed)

Created:
3 years, 11 months ago by karandeepb
Modified:
3 years, 11 months ago
Reviewers:
tapted
CC:
chromium-reviews, tfarina, chrome-apps-syd-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

MacViews: Don't click views::Link on pressing Return key. On Mac, the Return key is used to perform the default action associated with a dialog even when a control is focused. Modify Link::OnKeyPressed and Link::SkipDefaultKeyEventProcessing to respect the value of PlatformStyle::kReturnClicksFocusedControl so that focused links are not clicked on pressing Return. Instead on MacViews, Return is treated as an accelerator and performs the default action. BUG=607430 TEST=On Mac, enable chrome://flags/#secondary-ui-md. Open the Bookmark Bubble. Enable Full Keyboard Access (Ctrl+F7). Ensure no user is signed onto Chromium. Focus the "sign in to Chromium." link. Press Return key. Ensure the link is not clicked. Instead, the default action is performed (associated with the Done button). Review-Url: https://codereview.chromium.org/2609943004 Cr-Commit-Position: refs/heads/master@{#441626} Committed: https://chromium.googlesource.com/chromium/src/+/3da0435e15d762ba56ab91d08f3ccd63efedbeab

Patch Set 1 #

Patch Set 2 : Rebase. #

Patch Set 3 : Rebase. #

Total comments: 2

Patch Set 4 : Address review. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -4 lines) Patch
M ui/views/controls/link.cc View 1 2 3 3 chunks +8 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (12 generated)
karandeepb
PTAL Trent. This depends on https://codereview.chromium.org/2607923002/.
3 years, 11 months ago (2017-01-04 04:01:43 UTC) #4
tapted
lgtm https://codereview.chromium.org/2609943004/diff/60001/ui/views/controls/link.cc File ui/views/controls/link.cc (right): https://codereview.chromium.org/2609943004/diff/60001/ui/views/controls/link.cc#newcode130 ui/views/controls/link.cc:130: return (event.key_code() == ui::VKEY_SPACE) || nit: the parens ...
3 years, 11 months ago (2017-01-05 02:26:55 UTC) #6
karandeepb
https://codereview.chromium.org/2609943004/diff/60001/ui/views/controls/link.cc File ui/views/controls/link.cc (right): https://codereview.chromium.org/2609943004/diff/60001/ui/views/controls/link.cc#newcode130 ui/views/controls/link.cc:130: return (event.key_code() == ui::VKEY_SPACE) || On 2017/01/05 02:26:54, tapted ...
3 years, 11 months ago (2017-01-05 11:15:40 UTC) #13
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/2609943004/80001
3 years, 11 months ago (2017-01-05 11:15:46 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-05 12:30:56 UTC) #17
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/3da0435e15d762ba56ab91d08f3c...

Powered by Google App Engine
This is Rietveld 408576698