wip: directional focus!

This commit is contained in:
🪞👃🪞 2024-10-09 14:49:00 +03:00
parent ec3eb40bb4
commit 225eda0d24
5 changed files with 118 additions and 59 deletions

View file

@ -219,6 +219,14 @@ pub type KeyMap<T> = [KeyBinding<T>];
kind: crossterm::event::KeyEventKind::Press,
state: crossterm::event::KeyEventState::NONE
}))
};
(Shift-$code:pat) => {
TuiEvent::Input(crossterm::event::Event::Key(crossterm::event::KeyEvent {
code: $code,
modifiers: crossterm::event::KeyModifiers::SHIFT,
kind: crossterm::event::KeyEventKind::Press,
state: crossterm::event::KeyEventState::NONE
}))
}
}
pub struct TuiOutput {