editor: remove InputMap

This commit is contained in:
🪞👃🪞 2025-05-02 17:38:27 +03:00
parent a22a793c31
commit 457e6bb7eb
2 changed files with 54 additions and 69 deletions

View file

@ -567,13 +567,6 @@ atom_command!(MidiEditCommand: |state: MidiEditor| {
Show(Option<Arc<RwLock<MidiClip>>>),
}
handle!(TuiIn: |self: MidiEditor, input|Ok(if let Some(command) = self.keys.command(self, input) {
command.execute(self)?;
Some(true)
} else {
None
}));
impl Command<MidiEditor> for MidiEditCommand {
fn execute (self, state: &mut MidiEditor) -> Perhaps<Self> {
use MidiEditCommand::*;