Repository navigation
fix: disable shortcuts storybook - #582
Conversation
Signed-off-by: lornakelly <lornakelly88@gmail.com>
|
✅ Deploy Preview for openworkflow-editor ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are recorded for the change disabling Storybook shortcuts in both editor demos.
No open issues 🎉
What changed in this PR
Disables Storybook keyboard shortcuts in both editor demos to prevent shortcuts from stealing focus while typing in Monaco.
Changes:
- Adds manager configuration with
enableShortcuts: falsefor both editors. - Documents why Monaco’s EditContext input triggers Storybook shortcuts.
| File | Description |
|---|---|
| packages/text-editor/.storybook/manager.ts | Disables shortcuts in the text editor’s Storybook. |
| packages/dual-editor/.storybook/manager.ts | Disables shortcuts in the dual editor’s Storybook. |
Review effort: Balanced
fantonangeli
left a comment
There was a problem hiding this comment.
Interestiing I wasn't able to reproduce the 1 keyboard shortcut issue on Firefox, but I can replicate this on Chrome.
And for example there was the same issue with m used for the measure tool in Storybook toolbar.
Great solution to disable the shortcuts
Summary
Sometimes when typing in text or dual editor the cursor would lose focus and you would have to click back, this was due to storybooks shortcuts hijacking the cursor
See second time I type, I type
- h1:but no colon appeared and it lost focusScreen.Recording.2026-12-02.at.11.57.03.mov
Fix is to disable the shortcuts