feat(tracker): add button to make note off and use "1" also as the key event

Closes #54
This commit is contained in:
vsariola
2021-03-14 18:10:29 +02:00
parent 01226a2910
commit b6283cd13e
3 changed files with 17 additions and 2 deletions

View File

@ -382,7 +382,7 @@ func (t *Tracker) KeyEvent(w *app.Window, e key.Event) bool {
t.NumberPressed(byte(iv))
}
} else {
if e.Name == "A" {
if e.Name == "A" || e.Name == "1" {
t.SetNote(0)
} else {
if val, ok := noteMap[e.Name]; ok {