ports macro

This commit is contained in:
🪞👃🪞 2024-07-03 20:56:17 +03:00
parent 2067004d4a
commit e86be4facc
10 changed files with 104 additions and 102 deletions

View file

@ -49,10 +49,11 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
false => {app.scene_cursor = app.scene_cursor.saturating_sub(1); Ok(true)},
true => {app.track_cursor = app.track_cursor.saturating_sub(1); Ok(true)},
},
2 => { app.note_cursor = app.note_cursor.saturating_sub(1); Ok(true) }
_ => Ok(false)
}
} else {
focus_prev(app)
focus_next(app)
}
}],
[Down, NONE, "cursor_down", "move cursor down", |app: &mut App| {
@ -62,10 +63,11 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
false => {app.scene_cursor = app.scenes.len().min(app.scene_cursor + 1); Ok(true)},
true => {app.track_cursor = app.tracks.len().min(app.track_cursor + 1); Ok(true)},
},
2 => { app.note_cursor = app.note_cursor + 1; Ok(true) }
_ => Ok(false)
}
} else {
focus_next(app)
focus_prev(app)
}
}],
[Left, NONE, "cursor_left", "move cursor left", |app: &mut App| {