The tree takes one tab stop, and the keys below work inside it before your own onKeyDown runs.
- Up and Down move through the visible rows and wrap at both ends.
- Right expands a closed branch, or moves to its first child when it is open. Left collapses an open branch, or moves to the parent when it is closed.
- Home and End jump to the first and last visible rows.
- Enter expands or collapses any row that can expand, and only checks or selects a row that cannot. On a folder, Enter opens it rather than selecting it.
- Space checks the row on a checkable tree and selects it otherwise.
- The arrow keys stop on disabled rows too. They are announced but cannot be acted on.
- Dragging has no keyboard route. Offer a move command in the row as well.
disabled on the whole tree also removes its tab stop, so keyboard users cannot reach it to hear what it says. focusable={false} removes the tab stop without the disabled look. Prefer disabling single nodes.