fix enter key running on preview

This commit is contained in:
Chris Titus 2024-07-30 17:07:19 -05:00
parent 42be40f65d
commit 936e46becc

View File

@ -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,
}
}