From 85dc2f07076c4536bf133ea5cee4e92355e40a7c Mon Sep 17 00:00:00 2001 From: Brandon W Maister Date: Sat, 18 Feb 2023 11:27:23 -0800 Subject: [PATCH] ui: Switch j and k keys to match vi -- j means down, k means up --- src/client/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/ui.rs b/src/client/ui.rs index a6da4e6..8957ad0 100644 --- a/src/client/ui.rs +++ b/src/client/ui.rs @@ -383,7 +383,7 @@ impl UI { } } KeyEvent { code: KeyCode::Up, .. } - | KeyEvent { code: KeyCode::Char('j'), .. } => { + | KeyEvent { code: KeyCode::Char('k'), .. } => { let index = match self.selection.selected() { Some(i) => { if i == 0 { @@ -397,7 +397,7 @@ impl UI { self.selection.select(Some(index)); } KeyEvent { code: KeyCode::Down, .. } - | KeyEvent { code: KeyCode::Char('k'), .. } => { + | KeyEvent { code: KeyCode::Char('j'), .. } => { let index = match self.selection.selected() { Some(i) => { assert!(self.ports.len() > 0, "We must have ports because we have a selection.");