feat: Add right/left arrow key navigation

This commit is contained in:
Liam 2024-08-05 17:11:43 -07:00
parent 16f9e5d36c
commit 8aa7a216ab
No known key found for this signature in database

View File

@ -282,14 +282,14 @@ impl CustomList {
None None
} }
KeyCode::Enter | KeyCode::Char('l') => { KeyCode::Enter | KeyCode::Right | KeyCode::Char('l') => {
if self.preview_window_state.is_none() { if self.preview_window_state.is_none() {
self.handle_enter() self.handle_enter()
} else { } else {
None None
} }
} }
KeyCode::Char('h') if !self.at_root() => self.enter_parent_directory(), KeyCode::Left | KeyCode::Char('h') if !self.at_root() => self.enter_parent_directory(),
_ => None, _ => None,
} }
} }