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

Issue 2627013002: MacViews: Fix combobox keyboard shortcuts. (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: Fix combobox keyboard shortcuts. This CL changes the following behavior on MacViews: - Return key on a focused combobox does nothing (It should perform the default action for the dialog). - Up/Down arrow keys open the combobox dropdown instead of changing the selected index directly. - Space key press on a combobox opens the dropdown menu even for STYLE_ACTION. - Home, End, Command+Up/Down open the dropdown menu. - F4, Page Down, Page Up on a focused combobox do nothing. BUG=619545, 607430 Review-Url: https://codereview.chromium.org/2627013002 Cr-Commit-Position: refs/heads/master@{#444269} Committed: https://chromium.googlesource.com/chromium/src/+/95da469f19599a040d9dd93fe443e89345a65509

Patch Set 1 #

Patch Set 2 : Rebase. Add test. #

Patch Set 3 : Nits. #

Total comments: 20

Patch Set 4 : Address review #

Total comments: 2

Patch Set 5 : Add a comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+133 lines, -31 lines) Patch
M ui/views/controls/combobox/combobox.h View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 2 3 4 5 chunks +15 lines, -2 lines 0 comments Download
M ui/views/controls/combobox/combobox_unittest.cc View 1 2 3 9 chunks +112 lines, -25 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
karandeepb
PTAL Trent. Can you confirm the implemented behavior is what we want. I just checked ...
3 years, 11 months ago (2017-01-13 08:28:58 UTC) #11
tapted
yeah the #ifdefs aren't great. an alternative could be PlatformStyle::kNavigateComboboxWithMenu, but actually using that might ...
3 years, 11 months ago (2017-01-13 19:06:40 UTC) #12
karandeepb
PTAL Trent. https://codereview.chromium.org/2627013002/diff/60001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2627013002/diff/60001/ui/views/controls/combobox/combobox.cc#newcode630 ui/views/controls/combobox/combobox.cc:630: if (style_ == STYLE_ACTION) On 2017/01/13 19:06:39, ...
3 years, 11 months ago (2017-01-16 04:26:16 UTC) #16
tapted
lgtm with a comment (see below) https://codereview.chromium.org/2627013002/diff/60001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2627013002/diff/60001/ui/views/controls/combobox/combobox.cc#newcode630 ui/views/controls/combobox/combobox.cc:630: if (style_ == ...
3 years, 11 months ago (2017-01-17 21:48:32 UTC) #19
karandeepb
https://codereview.chromium.org/2627013002/diff/60001/ui/views/controls/combobox/combobox.cc File ui/views/controls/combobox/combobox.cc (right): https://codereview.chromium.org/2627013002/diff/60001/ui/views/controls/combobox/combobox.cc#newcode630 ui/views/controls/combobox/combobox.cc:630: if (style_ == STYLE_ACTION) On 2017/01/17 21:48:32, tapted wrote: ...
3 years, 11 months ago (2017-01-18 03:09:56 UTC) #20
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/2627013002/100001
3 years, 11 months ago (2017-01-18 03:10:17 UTC) #23
commit-bot: I haz the power
3 years, 11 months ago (2017-01-18 04:17:09 UTC) #26
Message was sent while issue was closed.
Committed patchset #5 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/95da469f19599a040d9dd93fe443...

Powered by Google App Engine
This is Rietveld 408576698