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

Issue 1829393002: Add keyboard accessibility to ConstrainedWindowButton (Closed)

Created:
4 years, 9 months ago by juncai
Modified:
4 years, 8 months ago
Reviewers:
Robert Sesek
CC:
chromium-reviews, Reilly Grant (use Gerrit)
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add keyboard accessibility to ConstrainedWindowButton This patch added keyboard accessibility to ConstrainedWindowButton. ConstrainedWindowButton is used by WebUSB chooser bubble, Geolocation permission bubble, etc. Previously, when trying to only interact with these bubbles with the keyboard, there are no focus styles. User should be able to press tab to navigate to buttons, and see a visible focus state. It will allow the user to only use keyboard to control the bubble, which improves the accessibility of the UI that uses it. BUG=596671 Committed: https://crrev.com/9f0ead0fd04825415795733a60d1cf587fd12b2a Cr-Commit-Position: refs/heads/master@{#383368}

Patch Set 1 : added keyboard accessibility to ConstrainedWindowButton #

Total comments: 2

Patch Set 2 : address rsesek@'s comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/website_settings/chooser_bubble_ui_cocoa.mm View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 21 (10 generated)
juncai
Please take a look.
4 years, 9 months ago (2016-03-25 17:56:07 UTC) #5
Robert Sesek
https://codereview.chromium.org/1829393002/diff/1/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm File chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm (right): https://codereview.chromium.org/1829393002/diff/1/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm#newcode258 chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm:258: if ([event keyCode] == kVK_Return) Return is not typically ...
4 years, 9 months ago (2016-03-25 20:16:03 UTC) #7
Robert Sesek
4 years, 9 months ago (2016-03-25 20:16:04 UTC) #8
juncai
https://codereview.chromium.org/1829393002/diff/1/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm File chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm (right): https://codereview.chromium.org/1829393002/diff/1/chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm#newcode258 chrome/browser/ui/cocoa/constrained_window/constrained_window_button.mm:258: if ([event keyCode] == kVK_Return) On 2016/03/25 20:16:03, Robert ...
4 years, 9 months ago (2016-03-25 20:31:54 UTC) #10
Robert Sesek
LGTM
4 years, 9 months ago (2016-03-25 20:33:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1829393002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1829393002/20001
4 years, 9 months ago (2016-03-25 21:32:43 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-25 21:38:20 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/9f0ead0fd04825415795733a60d1cf587fd12b2a Cr-Commit-Position: refs/heads/master@{#383368}
4 years, 9 months ago (2016-03-25 21:45:37 UTC) #17
juncai
ah, I found that there is a setting on Mac that can control the keyboard ...
4 years, 9 months ago (2016-03-25 22:33:36 UTC) #18
Robert Sesek
On 2016/03/25 22:33:36, juncai wrote: > ah, I found that there is a setting on ...
4 years, 8 months ago (2016-03-28 15:19:26 UTC) #20
juncai
4 years, 8 months ago (2016-03-28 17:50:01 UTC) #21
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/1837803002/ by juncai@chromium.org.

The reason for reverting is: There is a setting on Mac that can control the
keyboard access:

System Preferences -> Keyboard -> Shortcuts

At the bottom, it has:
"Full Keyboard Access: In windows and dialogs, press Tab to move keyboard focus
between:
Text boxes and lists only
All controls"

When setting to "All controls", without the change in this patch, pressing the
tab can navigate the buttons and space works like pressing the button. So this
patch is not needed..

Powered by Google App Engine
This is Rietveld 408576698