Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menu: space key in keyboard navigation #1175

Closed
gfaceless opened this issue Sep 4, 2016 · 1 comment · Fixed by #1533
Closed

menu: space key in keyboard navigation #1175

gfaceless opened this issue Sep 4, 2016 · 1 comment · Fixed by #1533
Assignees
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@gfaceless
Copy link

Bug, feature request, or proposal:

bug

What is the expected behavior?

enter and space keys can be both used to trigger button press when navigating by keyboard. After menu is opened, the first menu item should be focused automatically, but using space key fails to do so. (while enter key does the focus as expected)

What are the steps to reproduce?

official demo.

Adding a space key check here in the source code works:
if (event.keyCode === ENTER || event.keyCode === SPACE)

@jelbourn jelbourn added the P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent label Oct 19, 2016
kara added a commit to kara/material2 that referenced this issue Oct 19, 2016
@kara kara added the has pr label Oct 19, 2016
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants