Skip to content

Commit

Permalink
support arrow keys for navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
pythops committed Jan 12, 2025
1 parent e2f41dc commit 7586241
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions oryx-tui/src/section/metrics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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 {
Expand Down

0 comments on commit 7586241

Please sign in to comment.