Skip to content

Commit

Permalink
feat(keys): allow Tab and BackTab navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
graelo committed Feb 17, 2024
1 parent 2db8f92 commit ea08403
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/monitor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,12 @@ fn main_ui_loop<B: Backend>(
match events.recv()? {
// Event::Tick => app.on_tick(),
Event::Input(key) => match key {
Key::Char(c) => app.on_key(c),
Key::Esc => app.on_key('q'),
// Key::Up => app.on_up(),
// Key::Down => app.on_down(),
Key::Left => app.on_left(),
Key::Right => app.on_right(),
Key::Left | Key::BackTab => app.on_left(),
Key::Right | Key::Char('\t') => app.on_right(),
Key::Char(c) => app.on_key(c),
_ => {}
},
Event::Metrics(metrics) => app.on_metrics(metrics),
Expand Down

0 comments on commit ea08403

Please sign in to comment.