Skip to content

feat(widget-context-menu): keyboard navigation for context menu popover (Up/Down/Enter/Esc) #323

Description

@rubenvdlinde

Follow-up to #36 (widget-context-menu)

The v1 context menu (PR #73) is mouse-only by design. This issue tracks the keyboard navigation enhancement deferred from v1.

Scope

  • Arrow Up/Down should cycle focus through the three menu items (Edit → Remove → Cancel → wrap)
  • Enter should activate the focused item
  • Esc should close the popover and return focus to the widget that was right-clicked
  • Tab should close the popover and follow normal browser tab order
  • Focus should be trapped inside the popover while it is open

WCAG Compliance

Relevant WCAG 2.1 success criteria:

  • 2.1.1 Keyboard (Level A): all functionality available by keyboard
  • 2.1.2 No Keyboard Trap (Level A): focus can leave the popover via Esc

Deferred because

v1 is purely additive UI for mouse users. Keyboard support adds focus-trap complexity that would increase the spec size beyond the L1 sizing budget for this change.

Ref: openspec/changes/widget-context-menu/tasks.md Task 12


Gemigreerd van Codeberg — oorspronkelijk Conduction/launchpad#74, geopend door al-gorithm-con op 2026-06-04.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triageAwaiting triage

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions