Skip to content

Custom 'Enter' key behavior #6826

Closed Answered by snowystinger
duong-ld asked this question in Q&A
Discussion options

You must be logged in to vote

It's not customizable at this time and it's working as intended. We are following the expected behavior as defined by the ARIA patterns, seen here https://www.w3.org/WAI/ARIA/apg/patterns/menubar/

Enter:

  • When focus is on a menuitem that has a submenu, opens the submenu and places focus on its first item.
  • Otherwise, activates the item and closes the menu.

Space:

  • (Optional): When focus is on a menuitemcheckbox, changes the state without closing the menu.
  • (Optional): When focus is on a menuitemradio that is not checked, without closing the menu, checks the focused menuitemradio and unchecks any other checked menuitemradio element in the same group.
  • (Optional): When focus is on a menuit…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@duong-ld
Comment options

Answer selected by reidbarber
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants