Skip to content

v4.1.1

Choose a tag to compare

@TrevorBurnham TrevorBurnham released this 29 Nov 22:14
· 4 commits to main since this release
80bcff8

Fixes

  • Keyboard shortcuts no longer corrupt type-to-find: PageDown used to fall through and append the literal string "PageDown" to the search term, and other non-character keys and modifier shortcuts are now ignored as well. AltGr and macOS Option-composed letters still reach the search. Each tree also keeps its own search term instead of sharing one term across every tree on the page.

A without an onCreate handler now runs type-to-find instead of doing nothing, matching what a plain character does.

Backspace now deletes the visible selected rows rather than the focused row when the two differ (arrowing moves focus without selecting, and selected rows hidden by a search filter or collapsed folder are skipped), falling back to the focused row when no visible row is selected. Deleted ids are also cleared from the selection so pressing Backspace again deletes the newly focused row, and focus moves to the nearest visible row that survives the deletion (skipping descendants inside a selected folder, or moving to the previous visible row at the end of root).

Internally, the keyboard commands moved into one table of small handlers, so the tree's keydown branch is no longer 200 lines long, and the duplicated computeDrop branches are merged. (#399)