mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-22 05:12:27 +00:00
fix enter key running on preview
This commit is contained in:
parent
42be40f65d
commit
936e46becc
|
@ -272,7 +272,14 @@ impl CustomList {
|
|||
self.toggle_preview_window(state);
|
||||
None
|
||||
}
|
||||
KeyCode::Enter => self.handle_enter(),
|
||||
|
||||
KeyCode::Enter => {
|
||||
if self.preview_window_state.is_none() {
|
||||
self.handle_enter()
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user