mirror of
https://github.com/vsariola/sointu.git
synced 2026-02-16 05:03:18 -05:00
feat(tracker): enum-style values and menus to choose one option
This commit is contained in:
parent
ca4b87d43d
commit
4bb5df9c87
@ -283,6 +283,10 @@ func (t *Tracker) KeyEvent(e key.Event, gtx C) {
|
||||
t.FocusNext(gtx, false)
|
||||
case "FocusNextInto":
|
||||
t.FocusNext(gtx, true)
|
||||
case "MIDIRefresh":
|
||||
t.MIDI().Refresh().Do()
|
||||
case "ToggleMIDIInputtingNotes":
|
||||
t.MIDI().InputtingNotes().Toggle()
|
||||
default:
|
||||
if len(action) > 4 && action[:4] == "Note" {
|
||||
val, err := strconv.Atoi(string(action[4:]))
|
||||
|
||||
Reference in New Issue
Block a user