Skip to content

fix: focus settings toggle when opening with keyboard shortcut#186

Merged
danielroe merged 1 commit intonpmx-dev:mainfrom
jhroemer:fix-tab-order-is-incorrect-when-opening-settings-with-keyboard-shortcut
Jan 27, 2026
Merged

fix: focus settings toggle when opening with keyboard shortcut#186
danielroe merged 1 commit intonpmx-dev:mainfrom
jhroemer:fix-tab-order-is-incorrect-when-opening-settings-with-keyboard-shortcut

Conversation

@jhroemer
Copy link
Copy Markdown
Contributor

@jhroemer jhroemer commented Jan 27, 2026

Currently the focus tab order is not correct after opening the settings menu with the , shortcut (it stays where it is, instead of moving to the menu). This PR addresses the issue by focusing the settings button and clicking it programmatically, instead of simply toggling the isOpen value.

Before:
https://github.com/user-attachments/assets/4f8a52f9-36f5-4cdb-b5b2-d146253cbc75

After:
https://github.com/user-attachments/assets/27bf26e8-4bf9-4e48-be64-38c1dae8a922

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 27, 2026

@jhroemer is attempting to deploy a commit to the danielroe Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
npmx.dev Ready Ready Preview, Comment Jan 27, 2026 6:29pm

Request Review

@danielroe danielroe changed the title fix: tab order is correct when opening settings menu with keyboard shortcut fix: focus settings toggle when opening with keyboard shortcut Jan 27, 2026
@danielroe danielroe merged commit 4add5b1 into npmx-dev:main Jan 27, 2026
8 checks passed
vinnymac pushed a commit to vinnymac/npmx.dev that referenced this pull request Jan 28, 2026
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.

2 participants