patch: move up / down with 'j' and 'k'

This commit is contained in:
Erik Kundt
2024-02-28 11:09:37 +01:00
parent 7c39a25d50
commit 8f4b9922d0
+2 -2
View File
@@ -271,7 +271,7 @@ impl Widget<PatchesState, Action> 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<PatchesState, Action> for Patches {
});
}
}
Key::Down => {
Key::Down | Key::Char('j') => {
self.table.next(self.props.patches.len());
let selected = self