Skip to content

Commit 306ff91

Browse files
authored
Search popup: allow navigation with non arrow keys (#1816)
1 parent ab51490 commit 306ff91

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

Diff for: src/components/log_search_popup.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,11 @@ impl Component for LogSearchPopupComponent {
380380
) && self.option_selected()
381381
{
382382
self.toggle_option();
383+
} else if !self.option_selected() {
384+
self.find_text.event(event)?;
383385
}
384386
}
385387

386-
if !self.option_selected()
387-
&& self.find_text.event(event)?.is_consumed()
388-
{
389-
return Ok(EventState::Consumed);
390-
}
391-
392388
return Ok(EventState::Consumed);
393389
}
394390

0 commit comments

Comments
 (0)