From 6e517320d51c4c5d3bed3929bada2d008e650e3f Mon Sep 17 00:00:00 2001 From: Anthony Shew Date: Tue, 26 Nov 2024 15:41:22 -0700 Subject: [PATCH] fix: correct TUI vim binds direction --- crates/turborepo-ui/src/tui/input.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/turborepo-ui/src/tui/input.rs b/crates/turborepo-ui/src/tui/input.rs index f4c853eeae58c..9e4b84bdab496 100644 --- a/crates/turborepo-ui/src/tui/input.rs +++ b/crates/turborepo-ui/src/tui/input.rs @@ -112,8 +112,8 @@ fn translate_key_event(options: InputOptions, key_event: KeyEvent) -> Option { 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, }