clear previous selection on focus change#18
Conversation
|
Yes it was deliberate/ I don't have a strong opinion either way but most text inputs and editors seem to preserve the previous selection when switching focus. Maybe it could be a configurable behaviour. |
|
o interesting, i suppose our samples are just different, vscode and discord don't (as far i can tell, on ubuntu for context) for example, but totally fair i will still need the new |
|
just realized that vscode has both behaviors, for the search inputs, previous selections are cleared, but for selections in different file windows, the selection background is maintained for previous selections, but with a different color |
just bringing back the selection clearing behavior i introduced here #2 which got removed at some point (was that intentional?), ported to using the action queue with a new
TextInputEdit::SetSelectionvarianttested using the multiple inputs example
also ran
cargo fmtand fixed a clippy issue