Storybook: Make shortcuts in storybook optionable or move to addon

Created on 13 Mar 2018  ·  4Comments  ·  Source: storybookjs/storybook

Issue details

On one of the components that we have in our storybook, we have several shortcuts that we want add functionality to. One of them overlaps with storybook default one ⌘ ⇧ C, and disable us to handle this shortcut properly on the component.

My proposal is to add the possibility to enable or disable shortcuts in storybook through addon-options, keeping them as enabled by default.

options feature request

Most helpful comment

Released as 4.0.0-alpha.0

All 4 comments

Hello @Kiwka @igor-dv 👋

I'd love to take this up!

Does this spec seem fine to you folks?

setOptions({
    ...
    enableShortcuts: false, // true by default
})

Sure @PunitGr go for it

Thanks @PunitGr for looking into this 🙇‍♀️

Released as 4.0.0-alpha.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shilman picture shilman  ·  3Comments

arunoda picture arunoda  ·  3Comments

zvictor picture zvictor  ·  3Comments

Jonovono picture Jonovono  ·  3Comments

rpersaud picture rpersaud  ·  3Comments