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

Issue 10966027: Basic keyboard access for recently_closed menu on NTP. Allows using up and down arrows to navigate,… (Closed)

Created:
8 years, 3 months ago by aboxhall
Modified:
8 years, 2 months ago
CC:
chromium-reviews, dbeam+watch-ntp_chromium.org, estade+watch_chromium.org, arv (Not doing code reviews)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Basic keyboard access for recently_closed menu on NTP. Allows using up and down arrows to navigate, enter/space to activate. Since this uses focus() to allow selecting menu items, this puts a focus ring around the selected menu item. I assume this won't be the desired behaviour, but I thought I'd find out what we would prefer before I started messing with the CSS etc. BUG=151462 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158550

Patch Set 1 #

Patch Set 2 : Get rid of pointless experimental code" #

Total comments: 18

Patch Set 3 : Pull chrome.send params out into a variable #

Patch Set 4 : Add menu/menuitem role, comment for Tab character, and keep track of last selected item. #

Total comments: 6

Patch Set 5 : Don't steal keyboard events that the menu doesn't handle, and detect focusin on unrelated elements … #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -14 lines) Patch
M chrome/browser/resources/ntp4/recently_closed.js View 1 2 1 chunk +13 lines, -5 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/menu.js View 1 2 3 4 4 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/menu_button.js View 1 2 3 4 4 chunks +13 lines, -6 lines 0 comments Download
M chrome/browser/resources/shared/js/cr/ui/menu_item.js View 1 2 3 4 2 chunks +6 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
aboxhall
8 years, 3 months ago (2012-09-21 03:34:27 UTC) #1
Dan Beam
http://codereview.chromium.org/10966027/diff/3001/chrome/browser/resources/ntp4/recently_closed.js File chrome/browser/resources/ntp4/recently_closed.js (right): http://codereview.chromium.org/10966027/diff/3001/chrome/browser/resources/ntp4/recently_closed.js#newcode99 chrome/browser/resources/ntp4/recently_closed.js:99: var orig = e.originalEvent; nit: IMO var params = ...
8 years, 3 months ago (2012-09-21 03:44:49 UTC) #2
aboxhall
http://codereview.chromium.org/10966027/diff/3001/chrome/browser/resources/ntp4/recently_closed.js File chrome/browser/resources/ntp4/recently_closed.js (right): http://codereview.chromium.org/10966027/diff/3001/chrome/browser/resources/ntp4/recently_closed.js#newcode99 chrome/browser/resources/ntp4/recently_closed.js:99: var orig = e.originalEvent; On 2012/09/21 03:44:50, Dan Beam ...
8 years, 3 months ago (2012-09-21 06:45:59 UTC) #3
Dan Beam
http://codereview.chromium.org/10966027/diff/3001/chrome/browser/resources/ntp4/recently_closed.js File chrome/browser/resources/ntp4/recently_closed.js (right): http://codereview.chromium.org/10966027/diff/3001/chrome/browser/resources/ntp4/recently_closed.js#newcode112 chrome/browser/resources/ntp4/recently_closed.js:112: a.addEventListener('activate', onActivated); On 2012/09/21 06:46:00, aboxhall wrote: > On ...
8 years, 3 months ago (2012-09-21 10:23:48 UTC) #4
aboxhall
As well as keeping track of the last selected item and adding the comment for ...
8 years, 3 months ago (2012-09-24 00:48:52 UTC) #5
Dan Beam
lgtm but you should wait for someone with more a11y specific skills and understands the ...
8 years, 3 months ago (2012-09-24 07:33:55 UTC) #6
Evan Stade
(that would be Dominic, not me)
8 years, 3 months ago (2012-09-24 11:47:36 UTC) #7
dmazzoni
ARIA roles and general focus management looks great, just one thought. http://codereview.chromium.org/10966027/diff/7001/chrome/browser/resources/shared/js/cr/ui/menu_button.js File chrome/browser/resources/shared/js/cr/ui/menu_button.js (left): ...
8 years, 3 months ago (2012-09-24 17:49:06 UTC) #8
aboxhall
http://codereview.chromium.org/10966027/diff/7001/chrome/browser/resources/shared/js/cr/ui/menu_button.js File chrome/browser/resources/shared/js/cr/ui/menu_button.js (left): http://codereview.chromium.org/10966027/diff/7001/chrome/browser/resources/shared/js/cr/ui/menu_button.js#oldcode103 chrome/browser/resources/shared/js/cr/ui/menu_button.js:103: case 'blur': On 2012/09/24 17:49:06, Dominic Mazzoni wrote: > ...
8 years, 2 months ago (2012-09-24 22:39:38 UTC) #9
dmazzoni
http://codereview.chromium.org/10966027/diff/7001/chrome/browser/resources/shared/js/cr/ui/menu_button.js File chrome/browser/resources/shared/js/cr/ui/menu_button.js (right): http://codereview.chromium.org/10966027/diff/7001/chrome/browser/resources/shared/js/cr/ui/menu_button.js#newcode183 chrome/browser/resources/shared/js/cr/ui/menu_button.js:183: case 'U+0009': // Tab On 2012/09/24 22:39:38, aboxhall wrote: ...
8 years, 2 months ago (2012-09-24 22:48:56 UTC) #10
aboxhall
As well as the changes below, I also made a change to my focusSelectedItem() method ...
8 years, 2 months ago (2012-09-25 04:31:30 UTC) #11
dmazzoni
lgtm Thanks! I'm happy with it like this.
8 years, 2 months ago (2012-09-25 06:14:32 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aboxhall@chromium.org/10966027/12001
8 years, 2 months ago (2012-09-25 06:19:08 UTC) #13
commit-bot: I haz the power
8 years, 2 months ago (2012-09-25 13:01:47 UTC) #14
Change committed as 158550

Powered by Google App Engine
This is Rietveld 408576698