Skip to content

[select] Clarify use of Enter/Space keys for opening/closing listbox #386

@dandclark

Description

@dandclark

The tables in https://open-ui.org/components/select#events-1 suggest that either Enter key or Spacebar can be used to open the select's listbox when the popup is closed. If the listbox is opened (and contains focus), either Enter key or Spacebar can be used to close it.

The behavior I observe in browsers is a bit different:
Chromium: Either Enter or Spacebar can open the listbox. Only Enter can close it.
Firefox: Only Spacebar can open the listbox. Only Enter can close it.
Safari: Only Spacebar can open the listbox. Either Enter or Spacebar can close it.

Is there any particular reason to prefer any of these? My preference is to keep the current behavior at https://open-ui.org/components/select#events-1, but since all these browsers are different maybe there's some reason to be more restrictive that I'm not understanding.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agenda+Use this label if you'd like the topic to be added to the meeting agendaneeds editsThis is ready for edits to be madeselectThese are issues that relate to the select component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions