mirror of
https://github.com/vsariola/sointu.git
synced 2025-06-04 01:28:45 -04:00
feat(tracker): ctrl + arrow move cursor entire pattern
This commit is contained in:
parent
37c09030bc
commit
76dfd103e7
@ -79,11 +79,19 @@ func (t *Tracker) KeyEvent(e key.Event) bool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
case key.NameUpArrow:
|
case key.NameUpArrow:
|
||||||
t.CursorRow = (t.CursorRow + t.song.PatternRows() - 1) % t.song.PatternRows()
|
if e.Modifiers.Contain(key.ModCtrl) {
|
||||||
|
t.DisplayPattern = (t.DisplayPattern + t.song.SequenceLength() - 1) % t.song.SequenceLength()
|
||||||
|
} else {
|
||||||
|
t.CursorRow = (t.CursorRow + t.song.PatternRows() - 1) % t.song.PatternRows()
|
||||||
|
}
|
||||||
t.NoteTracking = false
|
t.NoteTracking = false
|
||||||
return true
|
return true
|
||||||
case key.NameDownArrow:
|
case key.NameDownArrow:
|
||||||
t.CursorRow = (t.CursorRow + 1) % t.song.PatternRows()
|
if e.Modifiers.Contain(key.ModCtrl) {
|
||||||
|
t.DisplayPattern = (t.DisplayPattern + 1) % t.song.SequenceLength()
|
||||||
|
} else {
|
||||||
|
t.CursorRow = (t.CursorRow + 1) % t.song.PatternRows()
|
||||||
|
}
|
||||||
t.NoteTracking = false
|
t.NoteTracking = false
|
||||||
return true
|
return true
|
||||||
case key.NameLeftArrow:
|
case key.NameLeftArrow:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user