feat(combobox): keyboard support for editable and configurable signal and selected index change behavior #80
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
mupen64/ugui!80
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/editable-combobox"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This changes the
signal_changebehavior of comboboxes as follows:ongoingif the selected original index is different fromcontrol.selected_index, ornoneotherwise.control.selected_index, the value isendedstarted. Should maybe be changed.This enables users of the
ugui.comboboxAPI to react to theendedsignal_change, fixing usability issues that would arise from prematurely updating the value fed intocontrol.selected_index.Additionally, the up and down arrow keys may be used to move the selected index, and enter may be used to confirm the selection (i.e. close the listbox).
@Aurumaker72 I can say that the behavior is now pretty much exactly what I'd want it to be, but the implementation is quite hacky.
Can you perhaps pick this up and clean it up properly? My head's a bit screwy right now 🥴
Yo, thanks a lot for this! Makes so much more sense semantically.
I can pick it up sure 👍
The scope for this is too broad: the key navigation stuff is nice but should definitely be a separate PR.
Can you make a separate PR with just that? I can move the changes over to it if you want, but you should make the PR so you get the squash commit authorship
Awesome :D