Skip to content

Commit 9671155

Browse files
committed
fixed not being able to select an entry when searching
1 parent 9c65499 commit 9671155

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/event/manager.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ pub fn handle_events(app: &mut App) -> Result<ControlFlow<()>, Box<dyn Error>> {
2323
KeyCode::Up => app.entries_list.previous(),
2424
KeyCode::Down => app.entries_list.next(),
2525

26-
KeyCode::Enter => app.display_entry(),
26+
KeyCode::Enter => {
27+
app.display_entry();
28+
app.select_entry();
29+
}
2730
KeyCode::Right => {
2831
if app.text_fields.search_bar.is_empty() {
2932
if app.current_entry.is_none() {

0 commit comments

Comments
 (0)