Skip to content

Commit 3eb26b6

Browse files
committed
chore: add up/down keymaps
1 parent 4804e2e commit 3eb26b6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,8 @@ fn handle_key(key: event::KeyEvent) -> Option<Message> {
298298
KeyCode::Char('7') => Some(Message::MoveToIndex(6)),
299299
KeyCode::Char('8') => Some(Message::MoveToIndex(7)),
300300
KeyCode::Char('9') => Some(Message::MoveToIndex(8)),
301-
KeyCode::Char('j') => Some(Message::GoToNextItem),
302-
KeyCode::Char('k') => Some(Message::GoToPreviousPreview),
301+
KeyCode::Char('j') | KeyCode::Down => Some(Message::GoToNextItem),
302+
KeyCode::Char('k') | KeyCode::Up => Some(Message::GoToPreviousPreview),
303303
KeyCode::Char('g') => Some(Message::GoToFirstItem),
304304
KeyCode::Char('G') => Some(Message::GoToLastItem),
305305
KeyCode::Char('J') => Some(Message::SwitchWithNextItem),

0 commit comments

Comments
 (0)