mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 00:48:35 +00:00
Search popup: allow navigation with non arrow keys (#1816)
This commit is contained in:
parent
ab51490648
commit
306ff91afa
1 changed files with 2 additions and 6 deletions
|
|
@ -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 a new issue