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

Improve TreeView arrow keys navigation #370

Merged
merged 2 commits into from
Nov 8, 2024
Merged

Conversation

willeastcott
Copy link
Contributor

@willeastcott willeastcott commented Nov 7, 2024

This PR updates how you can navigate around a TreeView using just arrow keys.

treeview

  • Pressing up and down arrows moves the selected TreeViewItem up and down. This is the same as before.
  • If you press right on a folded TreeViewItem, it will expand. If you press right again, the first child will be selected.
  • If you press left on a TreeViewItem that is folded or has no children, its parent will be selected. If you press left on a TreeViewItem that is open (with children), it will close.

Note: As far as I can tell, this is how the TreeView in VS Code behaves. So why not emulate it?

Fixes #369

@willeastcott willeastcott added the enhancement New feature or request label Nov 7, 2024
@willeastcott willeastcott self-assigned this Nov 7, 2024
@willeastcott willeastcott merged commit 712a115 into main Nov 8, 2024
6 checks passed
@willeastcott willeastcott deleted the tree-navigation branch November 8, 2024 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UX] Fold entity tree item from the child by Left key.
3 participants