question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Keyboard shortcuts order is not the same as treeview order

See original GitHub issue

Describe 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):

  1. Create three story files, A, B and C.
  2. Make A + C’s stories both apply to the same kind.
  3. In the UI A+C’s stories will be grouped.
  4. However, keyboard shortcuts will apply in the order the stories are added; ie A -> B -> C

Reproduction (via HMR, more common):

  1. Browse to a story in official storybook, e.g. “Placeholder > twoChildren”
  2. Edit the story file, export a third story
  3. Press “option + ->” (i.e. browse to next story). Notice it takes you to the next component
  4. Click on the new story within the Placeholder.
  5. Press “option + ->” (i.e. browse to next story). Notice nothing happens (it is treated as the last story)
  6. Press “option + <-” (i.e. browse to prev story). Notice the very last story in the storybook is opened.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
shilmancommented, Mar 1, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found