mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-27 00:14:52 +03:00
Search popup: allow navigation with non arrow keys (#1816)
This commit is contained in:
parent
ab51490648
commit
306ff91afa
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user