mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 04:06:45 +01:00
PhraseCommand -> MidiEditCommand
This commit is contained in:
parent
7f55c3bfc8
commit
57158d4d6f
4 changed files with 15 additions and 15 deletions
|
|
@ -3,7 +3,7 @@ use super::*;
|
|||
use KeyCode::{Char, Delete, Tab, Up, Down, Left, Right};
|
||||
use ClockCommand::{Play, Pause};
|
||||
use GrooveboxCommand as Cmd;
|
||||
use PhraseCommand::*;
|
||||
use MidiEditCommand::*;
|
||||
use PhrasePoolCommand::*;
|
||||
|
||||
pub struct Groovebox {
|
||||
|
|
@ -183,7 +183,7 @@ pub enum GrooveboxCommand {
|
|||
History(isize),
|
||||
Clock(ClockCommand),
|
||||
Pool(PoolCommand),
|
||||
Editor(PhraseCommand),
|
||||
Editor(MidiEditCommand),
|
||||
Enqueue(Option<Arc<RwLock<MidiClip>>>),
|
||||
Sampler(SamplerCommand),
|
||||
}
|
||||
|
|
@ -230,7 +230,7 @@ input_to_command!(GrooveboxCommand: <Tui>|state: Groovebox, input|match input.ev
|
|||
|
||||
// For the rest, use the default keybindings of the components.
|
||||
// The ones defined above supersede them.
|
||||
_ => if let Some(command) = PhraseCommand::input_to_command(&state.editor, input) {
|
||||
_ => if let Some(command) = MidiEditCommand::input_to_command(&state.editor, input) {
|
||||
Cmd::Editor(command)
|
||||
} else if let Some(command) = PoolCommand::input_to_command(&state.pool, input) {
|
||||
Cmd::Pool(command)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue