mirror of
https://codeberg.org/unspeaker/tek.git
synced 2025-12-07 12:16:42 +01:00
wip: 21 errors!
This commit is contained in:
parent
694970bf0d
commit
ea5bc2e3b1
30 changed files with 392 additions and 362 deletions
|
|
@ -1,9 +1,9 @@
|
|||
use crate::*;
|
||||
|
||||
impl <T, U> Handle for Track<T, U> {
|
||||
fn handle (&mut self, event: &AppEvent) -> Usually<bool> {
|
||||
match event {
|
||||
AppEvent::Input(crossterm::event::Event::Key(event)) => {
|
||||
impl Handle<Tui> for Track<Tui> {
|
||||
fn handle (&mut self, from: &Tui) -> Perhaps<bool> {
|
||||
match from.event() {
|
||||
TuiEvent::Input(crossterm::event::Event::Key(event)) => {
|
||||
for (code, modifiers, _, _, command) in [
|
||||
key!(Up, NONE, "chain_cursor_up", "move cursor up", || {
|
||||
Ok(true)
|
||||
|
|
@ -34,9 +34,9 @@ impl <T, U> Handle for Track<T, U> {
|
|||
return command()
|
||||
}
|
||||
}
|
||||
return Ok(false)
|
||||
return Ok(None)
|
||||
},
|
||||
_ => Ok(false)
|
||||
_ => Ok(None)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue