Issue Bug Closed

#104530Keyboard usage in Module Menu: use of ENTER/SPACE not consistent

Ayke Halder 08/01/24, 20:50 updated 12/02/25, 14:33

Description

Use of ENTER/SPACE in Module Menu for sub-menus must be consistent.

On ENTER/SPACE:

  • If sub-menu is closed: jump to first sub-menu entry – and of course open the sub-menu
  • If sub-menu is open: also jump to first sub-menu entry.

The current state is to close the sub-menu on ENTER/SPACE if it is already opened.

Current state of user journey

If sub-menu is closed:

  1. User focuses sub-menu via arrow-keys -> screen-reader: “Web menu – opens menu”
  2. User presses ENTER
  3. The sub-menu opens and first element of sub-menu is focused. -> screen-reader: “Web menu – Page”

If sub-menu is already open:

  1. User focuses sub-menu via arrow-keys -> screen-reader: “Web menu – opens menu”
  2. User presses ENTER
  3. The sub-menu closes -> screen-reader: “Web menu – opens menu”
  4. User presses ENTER
  5. The sub-menu opens and first element of sub-menu is focused. -> screen-reader: “Web menu – Page”

——

See https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/menu_role

> If focus was on the menu button, Enter opens the menu, giving focus to the first menu item.

> If focus is on the menu itself, Escape closes the menu and returns focus to the menu button or parent menubar item (…).

Reviews 2

Files 1

History 720

  1. Ayke Halder commented and changed attached clipboard-202501141614-6treg.png <span data-processor="relativetime" data-value="2025-01-14T15:15:00+00:00" > 01/14/25, 15:15 </span>

    Firefox DevTool: A11y

    Patch implemented looks like this:

    clipboard-202501141614-6treg.png

  2. Ayke Halder commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-01-23T12:30:10+00:00" > 01/23/25, 12:30 </span>

    Applied in changeset commit:3acce00f38d14c5032864e4d89ef0d6bff7be131.