callback api for tracks and devices

This commit is contained in:
🪞👃🪞 2024-07-04 20:46:31 +03:00
parent f2774e67a6
commit f928b026ed
3 changed files with 62 additions and 37 deletions

View file

@ -51,7 +51,7 @@ const KEYMAP: &'static [KeyBinding<App>] = keymap!(App {
Ok(true)
}],
[Char('t'), CONTROL, "add_track", "add a new track", |app: &mut App| {
app.add_track(None, None)?;
app.add_track(None)?;
Ok(true)
}],
[Char('`'), NONE, "switch_mode", "switch the display mode", |app: &mut App| {