From ea084033569ba0b570ef4f0c1c811e04b3c6fc1f Mon Sep 17 00:00:00 2001 From: graelo Date: Sat, 17 Feb 2024 00:58:06 +0100 Subject: [PATCH] feat(keys): allow Tab and BackTab navigation --- src/monitor.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/monitor.rs b/src/monitor.rs index 01757b1..933d9be 100644 --- a/src/monitor.rs +++ b/src/monitor.rs @@ -82,12 +82,12 @@ fn main_ui_loop( 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),