Feedback
Preserve ListBox selection on empty clicks and add a cancellable SelectionChanging event
- Status
- Fixed
- Fixed in
- v26.11.4
- Area
- desktop ide
- Source discussion
- https://forum.objo.dev/d/1540-listview-mousedown-cancel-event
- Last updated
- 2026-11-16
Upvotes
0 upvotes
Uses your Objo forum account.
Public summary
Add two ways to control selection in a desktop ListBox:
- An option to preserve the current selection when the user clicks empty space inside the ListBox.
- A cancellable
SelectionChangingevent that lets the application inspect a proposed selection and reject it before it is applied.
This lets developers keep a useful selection active and prevent particular rows or combinations of rows from being selected. Selection rules should work with mouse input, keyboard navigation and multiple-selection gestures. Cancelling a proposed change must leave the existing selection intact.
Preserving selection on empty clicks must be opt-in so existing applications retain their current behaviour.