mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-13 06:50:51 +08:00
inbox: move up / down with 'j' and 'k'
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user