Skip to content

fix(search): open cmd+K with the cursor in the search box - #1

Closed
Jonathan-Asher wants to merge 1 commit into
upstream-mainfrom
pr/cmdk-focus
Closed

Jonathan-Asher wants to merge 1 commit into
upstream-mainfrom
pr/cmdk-focus

Conversation

@Jonathan-Asher

Copy link
Copy Markdown
Owner

CI check of the upstream PR branch against upstream main (mirrored here as upstream-main).

The dialog's first focusable element is the Conversations tab button, so
that is where Radix put focus when the dialog opened: typing right after
cmd+K went nowhere until the search box was clicked. Clicking a tab moved
focus onto the tab as well.

The search box now takes focus when the dialog opens and keeps it when
switching tabs (the tab buttons no longer take focus on mouse down).
@Jonathan-Asher

Copy link
Copy Markdown
Owner Author

Opened upstream as xintaofei#833.

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.

1 participant