From 758624148a6aab26c373fb36e617ac942df258a9 Mon Sep 17 00:00:00 2001 From: Badr Date: Sun, 12 Jan 2025 18:11:25 +0100 Subject: [PATCH] support arrow keys for navigation --- oryx-tui/src/section/metrics.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oryx-tui/src/section/metrics.rs b/oryx-tui/src/section/metrics.rs index f2e4a85..f432487 100644 --- a/oryx-tui/src/section/metrics.rs +++ b/oryx-tui/src/section/metrics.rs @@ -215,7 +215,7 @@ impl Metrics { } } - KeyCode::Char('k') => { + KeyCode::Char('k') | KeyCode::Up => { let i = match self.state.selected { Some(i) => { if i > self.state.offset { @@ -233,7 +233,7 @@ impl Metrics { self.state.selected = Some(i); } - KeyCode::Char('j') => { + KeyCode::Char('j') | KeyCode::Down => { let i = match self.state.selected { Some(i) => { if i < self.window_height - 1 {