Skip to content

Commit

Permalink
fixed not being able to select an entry when searching
Browse files Browse the repository at this point in the history
  • Loading branch information
Biscgit committed Jan 28, 2024
1 parent 9c65499 commit 9671155
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/event/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ pub fn handle_events(app: &mut App) -> Result<ControlFlow<()>, Box<dyn Error>> {
KeyCode::Up => app.entries_list.previous(),
KeyCode::Down => app.entries_list.next(),

KeyCode::Enter => app.display_entry(),
KeyCode::Enter => {
app.display_entry();
app.select_entry();
}
KeyCode::Right => {
if app.text_fields.search_bar.is_empty() {
if app.current_entry.is_none() {
Expand Down

0 comments on commit 9671155

Please sign in to comment.