Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for numeric focus keys in focus zones #520

Open
iansan5653 opened this issue Feb 11, 2025 · 1 comment
Open

Add support for numeric focus keys in focus zones #520

iansan5653 opened this issue Feb 11, 2025 · 1 comment

Comments

@iansan5653
Copy link

iansan5653 commented Feb 11, 2025

The accessibility specification for content preview tabs (internal link) recommends supporting numeric focus keys to jump to specific items in the tabs list:

Key Behavior
1-8 Selects the first through eighth tab in the tab list, respectively. Noop if there is not a tab in the tab list order that corresponds with the number keypress.
9 Selects the last tab in the tab list, regardless of if there are more than 9 tabs. Noop if there is only one tab.

Ideally this would be supported natively by focus-zone, I think probably as a new FocusKeys.Numeric enum value.

@TylerJDev
Copy link
Contributor

Hey @iansan5653!

I agree, I think focus-zone would be a good place for this. For now I'll add this to our backlog, but let me know if there's a more immediate need for this to be added!

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

No branches or pull requests

2 participants