Skip to content

Conversation

@senadir
Copy link

@senadir senadir commented Nov 5, 2025

Fixes an issue in which if you open the command palette and search for a component, you can no longer copy from the page.

This is because the same event that opens and closes the cmdk palette, also hijacks the cmd+C shortcut to copy the install syntax for a package.

Fixes #7512
Fixes #8071 (possibly; didn't test but symptoms look similar).

Steps to reproduce

  1. Open cmd+k, search for a component, say Badge.
  2. Go to that page or close the search via esc.
  3. Try to select something in the page and copy via cmd+k
  4. Notice that your clipboard bun dlx shadcn@latest add badge instead of what you copied`.

Testing steps.

  1. Run steps 1->3 above.
  2. Notice that your clipboard contain what you selected.

@vercel
Copy link

vercel bot commented Nov 5, 2025

@senadir is attempting to deploy a commit to the shadcn-pro Team on Vercel.

A member of the Team first needs to authorize it.

@senadir senadir changed the title Fix issue in which search palette would hijack the copy command. Fix issue in which search palette would hijack the copy command in docs website Nov 5, 2025
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.

[bug]: Problem copy and paste in components examples [bug]: copy issue with keyboard

1 participant