mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-06 11:46:41 +01:00
fix focus on mixer page
This commit is contained in:
parent
574f45dc2b
commit
c72f7c6f4b
1 changed files with 8 additions and 2 deletions
|
|
@ -49,8 +49,14 @@ const KEYMAP_FOCUS: &'static [KeyBinding<App>] = keymap!(App {
|
|||
const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
|
||||
[F(1), NONE, "help_toggle", "toggle help", |_: &mut App| {Ok(true)}],
|
||||
|
||||
[Up, NONE, "focus_prev", "focus previous area", focus_prev],
|
||||
[Down, NONE, "focus_next", "focus next area", focus_next],
|
||||
[Up, NONE, "focus_prev", "focus previous area", |app: &mut App|match app.track_cursor {
|
||||
0 => {app.section = AppSection::Arranger;Ok(true)},
|
||||
_ => focus_prev(app)
|
||||
}],
|
||||
[Down, NONE, "focus_next", "focus next area", |app: &mut App|match app.track_cursor {
|
||||
0 => {app.section = AppSection::Chain;Ok(true)},
|
||||
_ => focus_next(app)
|
||||
}],
|
||||
|
||||
[Char(' '), NONE, "play_toggle", "play or pause", |app: &mut App| {
|
||||
app.toggle_play()?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue