mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-21 06:24:32 -04:00
fix(tracker/gioui): using keys to choose Unit Type and tab ordering
This commit is contained in:
parent
192909328c
commit
18d7848367
@ -471,15 +471,12 @@ func (ul *UnitList) update(gtx C, t *Tracker) {
|
||||
key.Filter{Focus: ul.dragList, Name: key.NameEnter, Optional: key.ModCtrl},
|
||||
key.Filter{Focus: ul.dragList, Name: key.NameReturn, Optional: key.ModCtrl},
|
||||
key.Filter{Focus: ul.dragList, Name: key.NameDeleteBackward},
|
||||
key.Filter{Focus: ul.dragList, Name: key.NameEscape},
|
||||
)
|
||||
if !ok {
|
||||
break
|
||||
}
|
||||
if e, ok := event.(key.Event); ok && e.State == key.Press {
|
||||
switch e.Name {
|
||||
case key.NameEscape:
|
||||
t.PatchPanel.instrList.instrumentDragList.Focus()
|
||||
case key.NameRightArrow:
|
||||
t.PatchPanel.unitEditor.sliderList.Focus()
|
||||
case key.NameDeleteBackward:
|
||||
@ -496,5 +493,5 @@ func (ul *UnitList) update(gtx C, t *Tracker) {
|
||||
}
|
||||
|
||||
func (ul *UnitList) Tags(curLevel int, yield TagYieldFunc) bool {
|
||||
return yield(curLevel, ul.dragList)
|
||||
return yield(curLevel, ul.dragList) && yield(curLevel+1, &ul.searchEditor.widgetEditor)
|
||||
}
|
||||
|
Reference in New Issue
Block a user