Shadcn is big on keyboard shortcuts but what are the best practices to implement them? #7743
florianmartens
started this conversation in
General
Replies: 1 comment
-
Gentle push |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Heyo, so - many of the shadcn comonents have components to display keyboard shortcuts like
CMD+P
etc. In a way, keyboard shortcuts are a first-class citizen in shadcn. But how would you actually go about implementing keyboard shortcuts? What are some best practices. I'm a bit lost how to go from rendering shortcuts to a robust implementation.What are libraries work well with shadcn when it comes to invoking the keyboard shortcuts and handle windows-to-mac-to-linux conversion of commands? How do we swap out the key command (Command to Ctrl) symbols between OSs?
Beta Was this translation helpful? Give feedback.
All reactions