mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-18 21:14:31 -04:00
feat(tracker): add step parameter to advance cursor after edit
The step is currently in the song panel; might consider putting it somewhere else. Closes #6
This commit is contained in:
@ -211,7 +211,11 @@ func (t *Tracker) KeyEvent(w *app.Window, e key.Event) bool {
|
||||
if e.Modifiers.Contain(key.ModShortcut) {
|
||||
t.Cursor.Row -= t.song.RowsPerPattern
|
||||
} else {
|
||||
t.Cursor.Row--
|
||||
if t.Step.Value > 0 {
|
||||
t.Cursor.Row -= t.Step.Value
|
||||
} else {
|
||||
t.Cursor.Row--
|
||||
}
|
||||
}
|
||||
t.NoteTracking = false
|
||||
case EditUnits:
|
||||
@ -237,7 +241,11 @@ func (t *Tracker) KeyEvent(w *app.Window, e key.Event) bool {
|
||||
if e.Modifiers.Contain(key.ModShortcut) {
|
||||
t.Cursor.Row += t.song.RowsPerPattern
|
||||
} else {
|
||||
t.Cursor.Row++
|
||||
if t.Step.Value > 0 {
|
||||
t.Cursor.Row += t.Step.Value
|
||||
} else {
|
||||
t.Cursor.Row++
|
||||
}
|
||||
}
|
||||
t.NoteTracking = false
|
||||
case EditUnits:
|
||||
|
Reference in New Issue
Block a user