In tree-view mode you can select multiple elements by hitting shift+arrow-keys (up/down)
let say we are selecting from top to down using down arrow
when we select last element using shift + down arrow key and keep hitting shift+down arrow selection gets inverted and it start select/deselect process at first element
Which is ok so far.
after 2nd cycle of invertion last element stays selected
Now if you keep pressing shift+down arrow focus/selection keeps cycling from top to bottom but now random elements stays in selected state
Another issues is CTRL+Up/Down arrow keys are not traversing the tree elements and CTRL+Space is not marking expected elements as selected.
Selection and inversion behavior need to be consistent
And CTRL+Space is to allow selecting multiple elements in tree view, and CTRL+Arrows to navigate across the elements
🐛 Bug report
Multi select for tree view works in weird way when operated only with keyboard
💥 Steps to reproduce
Another issues is CTRL+Up/Down arrow keys are not traversing the tree elements and CTRL+Space is not marking expected elements as selected.
💻 Link to reproduction
https://zagjs.com/components/solid/tree-view
🧐 Expected behavior
Selection and inversion behavior need to be consistent And CTRL+Space is to allow selecting multiple elements in tree view, and CTRL+Arrows to navigate across the elements