From 306ff91afa2b6d45e868da1cb820bd35a2294159 Mon Sep 17 00:00:00 2001 From: Ammar Abou Zor <35040531+AmmarAbouZor@users.noreply.github.com> Date: Tue, 22 Aug 2023 12:47:18 +0200 Subject: [PATCH] Search popup: allow navigation with non arrow keys (#1816) --- src/components/log_search_popup.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/components/log_search_popup.rs b/src/components/log_search_popup.rs index c6beb648..50931467 100644 --- a/src/components/log_search_popup.rs +++ b/src/components/log_search_popup.rs @@ -380,15 +380,11 @@ impl Component for LogSearchPopupComponent { ) && self.option_selected() { self.toggle_option(); + } else if !self.option_selected() { + self.find_text.event(event)?; } } - if !self.option_selected() - && self.find_text.event(event)?.is_consumed() - { - return Ok(EventState::Consumed); - } - return Ok(EventState::Consumed); }