mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
remove some old macros
This commit is contained in:
parent
a82f73d475
commit
f1c7512cbb
18 changed files with 306 additions and 361 deletions
10
src/mixer.rs
10
src/mixer.rs
|
|
@ -213,15 +213,15 @@ handle!(<Tui>|self: Mixer, engine|{
|
|||
handle!(<Tui>|self:MixerTrack,from|{
|
||||
match from.event() {
|
||||
//, NONE, "chain_cursor_up", "move cursor up", || {
|
||||
key_pat!(KeyCode::Up) => {
|
||||
kpat!(KeyCode::Up) => {
|
||||
Ok(Some(true))
|
||||
},
|
||||
// , NONE, "chain_cursor_down", "move cursor down", || {
|
||||
key_pat!(KeyCode::Down) => {
|
||||
kpat!(KeyCode::Down) => {
|
||||
Ok(Some(true))
|
||||
},
|
||||
// Left, NONE, "chain_cursor_left", "move cursor left", || {
|
||||
key_pat!(KeyCode::Left) => {
|
||||
kpat!(KeyCode::Left) => {
|
||||
//if let Some(track) = app.arranger.track_mut() {
|
||||
//track.device = track.device.saturating_sub(1);
|
||||
//return Ok(true)
|
||||
|
|
@ -229,7 +229,7 @@ handle!(<Tui>|self:MixerTrack,from|{
|
|||
Ok(Some(true))
|
||||
},
|
||||
// , NONE, "chain_cursor_right", "move cursor right", || {
|
||||
key_pat!(KeyCode::Right) => {
|
||||
kpat!(KeyCode::Right) => {
|
||||
//if let Some(track) = app.arranger.track_mut() {
|
||||
//track.device = (track.device + 1).min(track.devices.len().saturating_sub(1));
|
||||
//return Ok(true)
|
||||
|
|
@ -237,7 +237,7 @@ handle!(<Tui>|self:MixerTrack,from|{
|
|||
Ok(Some(true))
|
||||
},
|
||||
// , NONE, "chain_mode_switch", "switch the display mode", || {
|
||||
key_pat!(KeyCode::Char('`')) => {
|
||||
kpat!(KeyCode::Char('`')) => {
|
||||
//app.chain_mode = !app.chain_mode;
|
||||
Ok(Some(true))
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue