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

Keyboard shortcut API for addons #15046

Closed
domyen opened this issue May 25, 2021 · 2 comments
Closed

Keyboard shortcut API for addons #15046

domyen opened this issue May 25, 2021 · 2 comments

Comments

@domyen
Copy link
Member

domyen commented May 25, 2021

Addons extend and improve the Storybook workflow. Storybook has keyboard shortcuts that allow you to quickly manipulate the UI (the manager in Storybook parlance). But there's no easy way for addons to add their own custom the keyboard shortcuts. Instead, addon authors have to manually detect key downs to invoke their addons.

Describe the solution you'd like
Storybook addons should be able to define their own hotkeys like in VSCode.

Describe alternatives you've considered
The alternative is the status quo: addon authors manually implementing keyboard shortcuts.

Are you able to assist to bring the feature to reality?
No

Additional context
I designed the keyboard shortcuts UX in Storybook 5.0. It was modeled after VSCode. The UI doesn't need to change much to support this feature.

@shilman
Copy link
Member

shilman commented May 26, 2021

There's an API for this in 6.3 #14658

@shilman
Copy link
Member

shilman commented Jun 15, 2023

We’re cleaning house! Storybook has changed a lot since this issue was created and we don’t know if it’s still valid. Please open a new issue referencing this one if this is still relevant in SB 7.x.

@shilman shilman closed this as not planned Won't fix, can't repro, duplicate, stale Jun 15, 2023
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