CushyStudio
CushyStudio copied to clipboard
rework select and multi-select
misc list of todo and broken things
- make sure tab navigation work fine
- fix multi-select
- add ways to re-open / re-close with space, enter, and other regular keyboard shortcuts
- when multi-select open with more value that fit a single line => make it easy to see all options with wrapping
- keep all active options visible at all times regardless of filter
- remove most visual differences between single/multi-select (less code to maintain)
- fix the
MouseMoveTooFar
detection that do not - add a way to remove previously select but not-existing anymore options
- keep options labels in sync (only using cached id if not present)
manually selecting an option should instantly focus back the filter input so tab still work, and so we can start looking for an other option
fix the MouseMoveTooFar detection that do not
// | this code was a good idea; but it's really
// | not pleasant when working mostly with keyboard and using tab to open selects.
// | as soon as the moouse move just one pixel, popup close.
// | => commenting it out until we find a solution confortable in all cases
Good catch. Only close if the mouse becomes within distance first, and then leaves the distance.
Yes, planned to do that 👍, i have a bunch of unstaged changes locally; will push them this evening