mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-09 05:06:43 +01:00
remove some old macros
This commit is contained in:
parent
a82f73d475
commit
f1c7512cbb
18 changed files with 306 additions and 361 deletions
20
src/focus.rs
20
src/focus.rs
|
|
@ -248,16 +248,16 @@ pub trait FocusWrap<T> {
|
|||
|
||||
pub fn to_focus_command <T: Send + Sync> (input: &TuiIn) -> Option<FocusCommand<T>> {
|
||||
Some(match input.event() {
|
||||
key_pat!(Tab) => FocusCommand::Next,
|
||||
key_pat!(Shift-Tab) => FocusCommand::Prev,
|
||||
key_pat!(BackTab) => FocusCommand::Prev,
|
||||
key_pat!(Shift-BackTab) => FocusCommand::Prev,
|
||||
key_pat!(Up) => FocusCommand::Up,
|
||||
key_pat!(Down) => FocusCommand::Down,
|
||||
key_pat!(Left) => FocusCommand::Left,
|
||||
key_pat!(Right) => FocusCommand::Right,
|
||||
key_pat!(Enter) => FocusCommand::Enter,
|
||||
key_pat!(Esc) => FocusCommand::Exit,
|
||||
kpat!(Tab) => FocusCommand::Next,
|
||||
kpat!(Shift-Tab) => FocusCommand::Prev,
|
||||
kpat!(BackTab) => FocusCommand::Prev,
|
||||
kpat!(Shift-BackTab) => FocusCommand::Prev,
|
||||
kpat!(Up) => FocusCommand::Up,
|
||||
kpat!(Down) => FocusCommand::Down,
|
||||
kpat!(Left) => FocusCommand::Left,
|
||||
kpat!(Right) => FocusCommand::Right,
|
||||
kpat!(Enter) => FocusCommand::Enter,
|
||||
kpat!(Esc) => FocusCommand::Exit,
|
||||
_ => return None
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue