phrases: autoshow, autoedit

This commit is contained in:
🪞👃🪞 2024-11-02 20:25:28 +02:00
parent 02fa22e2ea
commit 2f904ed78b
4 changed files with 14 additions and 26 deletions

View file

@ -27,9 +27,10 @@ impl Arranger<Tui> {
fn handle_focused (&mut self, from: &TuiInput) -> Perhaps<bool> {
match self.focused() {
ArrangerFocus::Transport => self.transport.handle(from),
ArrangerFocus::Arrangement => self.handle_arrangement(from),
ArrangerFocus::PhrasePool => self.handle_pool(from),
ArrangerFocus::PhraseEditor => self.editor.handle(from),
ArrangerFocus::Arrangement => self.handle_arrangement(from)
.and_then(|result|{self.show_phrase();Ok(result)}),
}
}
/// Helper for phrase event passthru when phrase pool is focused