Keyboard shortcuts order is not the same as treeview order
See original GitHub issueDescribe the bug A bit of an edge case. When you create a new story for a component, it appears in the right place in treeview, but is treated as if it is at the very end as far as keyboard shortcuts are concerned.
Reproduction (via same kind in two files, kind of weird, but easy to repro):
- Create three story files,
A
,B
andC
. - Make
A
+C
’s stories both apply to the same kind. - In the UI
A
+C
’s stories will be grouped. - However, keyboard shortcuts will apply in the order the stories are added; ie
A
->B
->C
Reproduction (via HMR, more common):
- Browse to a story in official storybook, e.g. “Placeholder > twoChildren”
- Edit the story file, export a third story
- Press “option + ->” (i.e. browse to next story). Notice it takes you to the next component
- Click on the new story within the Placeholder.
- Press “option + ->” (i.e. browse to next story). Notice nothing happens (it is treated as the last story)
- Press “option + <-” (i.e. browse to prev story). Notice the very last story in the storybook is opened.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Solved: PowerApps design reorder keyboard shortcuts
I have to move the data cards on screen in Edit Fields but those changes are not reflected in the tree view. Any...
Read more >Keyboard shortcuts in Tree view - FlexSim Community
Keyboard shortcuts in Tree view · go to next and previous node or sibling (like up/down keys in Windows explorer) · go up...
Read more >WPF TreeView KeyBinding Ctrl + Down - Stack Overflow
There is a code in TreeView control which handles Ctrl+Down so your binding is not working as the keys event is already processed....
Read more >[Implemented] Ticket #3923 - change order in tree view - Page 2
To make the order of items in the tree view persistent the ... can be also accessed via keyboard shortcuts - "Alt +...
Read more >QTreeView — Qt for Python - Qt Documentation
def sortByColumn (column, order) ... Draws the branches in the tree view on the same row as the model item index , using...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
=> https://github.com/storybooks/storybook/pull/5805
Yo-ho-ho!! I just released https://github.com/storybooks/storybook/releases/tag/v5.0.0-rc.8 containing PR #5805 that references this issue. Upgrade today to try it out!
Because it’s a pre-release you can find it on the
@next
NPM tag.Closing this issue. Please re-open if you think there’s still more to do.