use popup specific up/down cmds (fixes #1831)

This commit is contained in:
extrawurst 2023-08-26 13:45:15 +02:00
parent 7558d25e25
commit 2377924f9c

View file

@ -328,9 +328,7 @@ impl Component for LogSearchPopupComponent {
out.push( out.push(
CommandInfo::new( CommandInfo::new(
strings::commands::navigate_tree( strings::commands::scroll_popup(&self.key_config),
&self.key_config,
),
true, true,
true, true,
) )
@ -370,12 +368,14 @@ impl Component for LogSearchPopupComponent {
&& !self.find_text.get_text().trim().is_empty() && !self.find_text.get_text().trim().is_empty()
{ {
self.execute_search(); self.execute_search();
} else if key_match(key, self.key_config.keys.move_up) } else if key_match(
{ key,
self.key_config.keys.popup_up,
) {
self.move_selection(true); self.move_selection(true);
} else if key_match( } else if key_match(
key, key,
self.key_config.keys.move_down, self.key_config.keys.popup_down,
) { ) {
self.move_selection(false); self.move_selection(false);
} else if key_match( } else if key_match(