From 8f4b9922d0817445a6ceb7752e7124d43a5959a2 Mon Sep 17 00:00:00 2001 From: Erik Kundt Date: Wed, 28 Feb 2024 11:09:37 +0100 Subject: [PATCH] patch: move up / down with 'j' and 'k' --- bin/commands/patch/flux/select/ui.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/commands/patch/flux/select/ui.rs b/bin/commands/patch/flux/select/ui.rs index 9ca25afc..e62febf2 100644 --- a/bin/commands/patch/flux/select/ui.rs +++ b/bin/commands/patch/flux/select/ui.rs @@ -271,7 +271,7 @@ impl Widget for Patches { fn handle_key_event(&mut self, key: Key) { match key { - Key::Up => { + Key::Up | Key::Char('k') => { self.table.prev(); let selected = self @@ -286,7 +286,7 @@ impl Widget for Patches { }); } } - Key::Down => { + Key::Down | Key::Char('j') => { self.table.next(self.props.patches.len()); let selected = self