mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
scroll sequencer
This commit is contained in:
parent
47b2c5da29
commit
7f3425fe04
3 changed files with 18 additions and 7 deletions
|
|
@ -85,7 +85,11 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
|
|||
}
|
||||
},
|
||||
2 => {
|
||||
app.time_cursor = app.time_cursor.saturating_sub(1);
|
||||
if app.entered {
|
||||
app.time_cursor = app.time_cursor.saturating_sub(1);
|
||||
} else {
|
||||
app.time_start = app.time_start.saturating_sub(1);
|
||||
}
|
||||
Ok(true)
|
||||
},
|
||||
_ => Ok(false)
|
||||
|
|
@ -106,7 +110,11 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
|
|||
}
|
||||
},
|
||||
2 => {
|
||||
app.time_cursor = app.time_cursor + 1;
|
||||
if app.entered {
|
||||
app.time_cursor = app.time_cursor + 1;
|
||||
} else {
|
||||
app.time_start = app.time_start + 1;
|
||||
}
|
||||
Ok(true)
|
||||
},
|
||||
_ => Ok(false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue