fix focus on mixer page

This commit is contained in:
🪞👃🪞 2024-07-08 22:56:31 +03:00
parent 574f45dc2b
commit c72f7c6f4b

View file

@ -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()?;