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

This commit is contained in:
Erik Kundt
2024-02-28 11:09:28 +01:00
parent e774da02db
commit 7c39a25d50
+2 -2
View File
@@ -240,7 +240,7 @@ impl Widget<IssuesState, Action> for Issues {
fn handle_key_event(&mut self, key: Key) {
match key {
Key::Up => {
Key::Up | Key::Char('k') => {
self.table.prev();
let selected = self
@@ -255,7 +255,7 @@ impl Widget<IssuesState, Action> for Issues {
});
}
}
Key::Down => {
Key::Down | Key::Char('j') => {
self.table.next(self.props.issues.len());
let selected = self