components icon indicating copy to clipboard operation
components copied to clipboard

[md-nav-list][bug] Keyboard support

Open chouclee opened this issue 10 years ago • 4 comments

Bug, feature request, or proposal:

Bug

What is the expected behavior?

https://github.com/angular/material2/pull/1599 nav-list should support keyboards events like keyup, keydown.

What is the current behavior?

Only works when scroll bar can scroll.

What are the steps to reproduce?

http://plnkr.co/edit/7KTO8hIAgb9VO7oubNoF?p=preview Click 'AB'. Keyup will not work. Keydown works until 'BB'

What is the use-case or motivation for changing an existing behavior?

Fully support of keyboards events, at least for keyup, keydown and enter.

Which versions of Angular, Material, OS, browsers are affected?

Angular 2.1.0 Material: Master OS: MacOS 10.11.6

Is there anything else we should know?

Nope

chouclee avatar Nov 17 '16 00:11 chouclee

@marcysutton For a list of anchors, should the interaction just to be to rely on the browser's default behavior (tabbing through them vs. having arrow-key shortcuts)?

(md-nav-list is just a list of anchor elements)

jelbourn avatar Nov 18 '16 00:11 jelbourn

@jelbourn yes, that is correct! Although if those anchors have ARIA menu roles, then the expected navigation behavior is to use the arrow keys with the whole menu as one tab stop. But I think you know that already :)

marcysutton avatar Nov 18 '16 00:11 marcysutton

Going to close this as working-as-intended then; the a11y for the nav-list determines the interaction here.

jelbourn avatar Nov 18 '16 00:11 jelbourn

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.