feat(tracker): implement more proper menus, with Undo&Redo

Closes #24
This commit is contained in:
vsariola
2021-02-15 23:05:06 +02:00
parent a470452e99
commit 94205b9ab2
5 changed files with 231 additions and 86 deletions

View File

@ -111,6 +111,16 @@ func (t *Tracker) KeyEvent(w *app.Window, e key.Event) bool {
t.LoadSong(defaultSong.Copy())
return true
}
case "S":
if e.Modifiers.Contain(key.ModShortcut) {
t.SaveSongFile()
return false
}
case "O":
if e.Modifiers.Contain(key.ModShortcut) {
t.LoadSongFile()
return true
}
case key.NameDeleteForward:
switch t.EditMode {
case EditTracks: