Skip to content

Commit

Permalink
fix: correct TUI vim binds direction (#9529)
Browse files Browse the repository at this point in the history
### Description

I did the incorrect directions for up/down in #9508. This fixes it.
  • Loading branch information
anthonyshew authored Nov 26, 2024
1 parent 95129e3 commit 755f14c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/turborepo-ui/src/tui/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ fn translate_key_event(options: InputOptions, key_event: KeyEvent) -> Option<Eve
KeyCode::Char('n') if key_event.modifiers == KeyModifiers::CONTROL => {
Some(Event::ScrollDown)
}
KeyCode::Up | KeyCode::Char('j') => Some(Event::Up),
KeyCode::Down | KeyCode::Char('k') => Some(Event::Down),
KeyCode::Up | KeyCode::Char('k') => Some(Event::Up),
KeyCode::Down | KeyCode::Char('j') => Some(Event::Down),
KeyCode::Enter | KeyCode::Char('i') => Some(Event::EnterInteractive),
_ => None,
}
Expand Down

0 comments on commit 755f14c

Please sign in to comment.