The Codex Menu component handles space keydowns in the following manner:
- If the menu is expanded and a menu item is highlighted, select the menu item and close the menu.
- If the menu is not expanded, open it.
The first behavior is likely necessary as much as we can support it, while the second is non-standard and possibly not needed.
We decided to remove all special handling of the space key for menu components with a text input, because the logic that attempts to determine if the user is trying to type a space character vs. something else is complex and has already caused bugs (see T324397 for a recent example). This task covers evaluating this behavior for other menu components, in order to provide a consistent experience across all menu components.
Acceptance criteria
- Gather feedback about the keyboard navigation support needed for menu components
- Based on that, decide what updates are needed and open tasks for them