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

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