Skip to content

fix: add keyboard shortcut for Jump To navigation - #1608

Open
abhishekpanda-dev wants to merge 1 commit into
processing:mainfrom
abhishekpanda-dev:fix/jump-to-keyboard-shortcut
Open

abhishekpanda-dev wants to merge 1 commit into
processing:mainfrom
abhishekpanda-dev:fix/jump-to-keyboard-shortcut

Conversation

@abhishekpanda-dev

Copy link
Copy Markdown

Description

Adds the keyboard shortcut requested in #935 for the Jump To navigation.

Pressing Alt + J (Option + J on macOS) now focuses the Jump To toggle without opening or closing it. The shortcut is also shown next to the heading so users can discover it.

The shortcut is ignored when the user is typing in inputs, textareas, selects, contenteditable elements, or the CodeMirror editor.

I also added aria-keyshortcuts="Alt+J" and tests covering the shortcut behavior, editable contexts, modifier combinations, macOS behavior, and listener cleanup.

Testing

  • npm run lint
  • npm run check
  • npx vitest --run test/components/JumpToLinks.test.tsx — 14 tests passed
  • Manually tested Alt + J in the browser and confirmed it focuses the Jump To button without toggling the menu

Closes #935

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Navigation] Quick access keys to jump to the side navigation

1 participant