Search popup: allow navigation with non arrow keys (#1816)

This commit is contained in:
Ammar Abou Zor 2023-08-22 12:47:18 +02:00 committed by GitHub
parent ab51490648
commit 306ff91afa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}