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

Issue 2319123002: Profile Avatar Selector: Allow arrow keys to be used for moving between avatars (2nd edition) (Closed)

Created:
4 years, 3 months ago by Moe
Modified:
4 years, 3 months ago
Reviewers:
Dan Beam
CC:
chromium-reviews, oshima+watch_chromium.org, jlklein+watch-closure_chromium.org, dbeam+watch-elements_chromium.org, vitalyp+closure_chromium.org, michaelpg+watch-elements_chromium.org, stevenjb+watch-md-settings_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Profile Avatar Selector: Allow user to navigate between avatars using arrow keys BUG=639843 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation

Patch Set 1 #

Total comments: 2

Messages

Total messages: 16 (7 generated)
Moe
Hi Dan, just a quick ping that this CL is an alternative to https://codereview.chromium.org/2269743002 and ...
4 years, 3 months ago (2016-09-12 14:07:37 UTC) #8
Dan Beam
can we just update the upstream code to use addOwnKeyBinding()? is it intentional that they're ...
4 years, 3 months ago (2016-09-15 16:42:05 UTC) #9
Moe
On 2016/09/15 16:42:05, Dan Beam wrote: > can we just update the upstream code to ...
4 years, 3 months ago (2016-09-15 17:34:14 UTC) #10
Dan Beam
On 2016/09/15 17:34:14, moe wrote: > On 2016/09/15 16:42:05, Dan Beam wrote: > > can ...
4 years, 3 months ago (2016-09-15 17:39:14 UTC) #11
Dan Beam
On 2016/09/15 17:39:14, Dan Beam wrote: > On 2016/09/15 17:34:14, moe wrote: > > On ...
4 years, 3 months ago (2016-09-15 17:41:28 UTC) #12
Dan Beam
https://codereview.chromium.org/2319123002/diff/1/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_listbox.js File ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_listbox.js (right): https://codereview.chromium.org/2319123002/diff/1/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_listbox.js#newcode19 ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_listbox.js:19: Polymer.IronMenubarBehavior, can we just just NOT use the full ...
4 years, 3 months ago (2016-09-15 17:47:03 UTC) #13
Moe
On 2016/09/15 17:41:28, Dan Beam wrote: > On 2016/09/15 17:39:14, Dan Beam wrote: > > ...
4 years, 3 months ago (2016-09-15 17:47:29 UTC) #14
Moe
On 2016/09/15 17:47:03, Dan Beam wrote: > https://codereview.chromium.org/2319123002/diff/1/ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_listbox.js > File > ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_listbox.js > (right): > ...
4 years, 3 months ago (2016-09-15 17:51:35 UTC) #15
Moe
4 years, 3 months ago (2016-09-15 17:52:00 UTC) #16
On 2016/09/15 17:51:35, moe wrote:
> On 2016/09/15 17:47:03, Dan Beam wrote:
> >
>
https://codereview.chromium.org/2319123002/diff/1/ui/webui/resources/cr_eleme...
> > File
> >
>
ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_listbox.js
> > (right):
> > 
> >
>
https://codereview.chromium.org/2319123002/diff/1/ui/webui/resources/cr_eleme...
> >
>
ui/webui/resources/cr_elements/cr_profile_avatar_selector/cr_profile_avatar_selector_listbox.js:19:
> > Polymer.IronMenubarBehavior,
> > can we just just NOT use the full IronMenubarBehavior?  and just copy the
> parts
> > that aren't silly for our use case?
> 
> sgtm. I'll go ahead and update the version 1 CL with the following and copy
get
> _isRTL() from the IronMenubarBehavior.
> 
> if (this._isRTL)
>   avatarList.addOwnKeyBinding('left', '_onDownKey');
>   avatarList.addOwnKeyBinding('right', '_onUpKey');
> else
>   avatarList.addOwnKeyBinding('left', '_onUpKey');
>   avatarList.addOwnKeyBinding('right', '_onDownKey');

closing this CL...

Powered by Google App Engine
This is Rietveld 408576698