inputs
inputs copied to clipboard
Command-click a row or command-drag rows to toggle selection in Tables?
Ref. https://observablehq.com/@observablehq/input-table#comment-a55f3587d9ddb0f9
This would be especially nice since you don’t have to click the tiny checkboxes.
My preferred behavior would be to treat any mouse interactions where the mousedown started in the column of checkboxes as if the table rows were a multi-selection input.
~So then click (optionally drag) starting in the checkbox column would result in a selection of the set union between the previous selection and the drag range, and command-click (optionally drag) would select the set difference between the previous selection and drag range.~
Edit: I am misstating the behavior above. In a Safari multi-select, command-drag from a currently deselected row adds the drag range to the selection, command-drag from a currently selected row subtracts the drag range from the selection. A modifier-free click or click-drag sets the new selection to the drag range alone.
What I would propose for the table input is to use the multi-select command-drag behavior on any kind of click or click-drag starting from the checkbox column (with no need for modifiers), since someone wanting to deselect everything and start over can use the checkbox in the header row.
I agree that clicking and dragging starting outside the checkbox column should be used for text selection (or possibly selection of a rectangular range of cells, excel-style).