mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-21 22:44:50 -04:00
feat(tracker/gioui): new tab order logic and refactor instrument editor
This commit is contained in:
parent
d276f52942
commit
08c36ed462
@ -74,7 +74,7 @@ func DialogBtn(text string, action tracker.Action) DialogButton {
|
||||
func (d *Dialog) Layout(gtx C) D {
|
||||
anyFocused := false
|
||||
for i := 0; i < d.NumBtns; i++ {
|
||||
anyFocused = anyFocused || gtx.Source.Focused(&d.State.Clickables[i])
|
||||
anyFocused = anyFocused || gtx.Focused(&d.State.Clickables[i])
|
||||
}
|
||||
if !anyFocused {
|
||||
gtx.Execute(key.FocusCmd{Tag: &d.State.Clickables[d.NumBtns-1]})
|
||||
|
Reference in New Issue
Block a user