mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 20:26:42 +01:00
rename AppSection -> AppFocus
This commit is contained in:
parent
94738d3e89
commit
58cd51dfbf
7 changed files with 19 additions and 18 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::{core::*, handle, App, AppSection};
|
||||
use crate::{core::*, handle, App, AppFocus};
|
||||
|
||||
pubmod!{ arranger chain focus mixer plugin sampler sequencer transport }
|
||||
|
||||
|
|
@ -26,13 +26,13 @@ handle!{
|
|||
|
||||
fn handle_focused (state: &mut App, e: &AppEvent) -> Usually<bool> {
|
||||
match state.section {
|
||||
AppSection::Transport =>
|
||||
AppFocus::Transport =>
|
||||
handle_keymap(state, e, crate::control::transport::KEYMAP_TRANSPORT),
|
||||
AppSection::Arranger =>
|
||||
AppFocus::Arranger =>
|
||||
handle_keymap(state, e, crate::control::arranger::KEYMAP_ARRANGER),
|
||||
AppSection::Sequencer =>
|
||||
AppFocus::Sequencer =>
|
||||
handle_keymap(state, e, crate::control::sequencer::KEYMAP_SEQUENCER),
|
||||
AppSection::Chain => Ok(if state.entered {
|
||||
AppFocus::Chain => Ok(if state.entered {
|
||||
handle_device(state, e)? ||
|
||||
handle_keymap(state, e, crate::control::chain::KEYMAP_CHAIN)?
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue