mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-11 22:26:44 +01:00
cmdsys: menubar pt.1
This commit is contained in:
parent
2b163e9e27
commit
38e8cfc214
7 changed files with 180 additions and 136 deletions
|
|
@ -30,7 +30,7 @@ impl MatchInput<Tui, Sequencer<Tui>> for SequencerCommand {
|
|||
key!(KeyCode::Down) => Some(Self::FocusDown),
|
||||
key!(KeyCode::Left) => Some(Self::FocusLeft),
|
||||
key!(KeyCode::Right) => Some(Self::FocusRight),
|
||||
key!(KeyCode::Char(' ')) => Some(Self::Transport(TransportCommand::TogglePlay)),
|
||||
key!(KeyCode::Char(' ')) => Some(Self::Transport(TransportCommand::PlayToggle)),
|
||||
_ => match state.focused() {
|
||||
SequencerFocus::Transport => state.transport.as_ref()
|
||||
.map(|t|TransportCommand::match_input(&*t.read().unwrap(), input)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue