mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
feat(tracker): make instrument name editable
This commit is contained in:
@ -45,6 +45,9 @@ var noteMap = map[string]int{
|
||||
// KeyEvent handles incoming key events and returns true if repaint is needed.
|
||||
func (t *Tracker) KeyEvent(e key.Event) bool {
|
||||
if e.State == key.Press {
|
||||
if t.InstrumentNameEditor.Focused() {
|
||||
return false
|
||||
}
|
||||
switch e.Name {
|
||||
case "Z":
|
||||
if e.Modifiers.Contain(key.ModCtrl) {
|
||||
|
Reference in New Issue
Block a user