Skip to content

menu: space key in keyboard navigation #1175

Closed
@gfaceless

Description

@gfaceless

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)

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions