mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 21:28:48 +00:00
feat: Add right/left arrow key navigation
This commit is contained in:
parent
16f9e5d36c
commit
8aa7a216ab
|
@ -282,14 +282,14 @@ impl CustomList {
|
|||
None
|
||||
}
|
||||
|
||||
KeyCode::Enter | KeyCode::Char('l') => {
|
||||
KeyCode::Enter | KeyCode::Right | KeyCode::Char('l') => {
|
||||
if self.preview_window_state.is_none() {
|
||||
self.handle_enter()
|
||||
} else {
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user