From 1815ac2b10a946e7971da6e9f63bb0e52a6abf02 Mon Sep 17 00:00:00 2001 From: Badr Date: Mon, 23 Sep 2024 13:40:00 +0200 Subject: [PATCH] do not show when filter popup is already shown --- oryx-tui/src/handler.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oryx-tui/src/handler.rs b/oryx-tui/src/handler.rs index 97acac4..8fd7403 100644 --- a/oryx-tui/src/handler.rs +++ b/oryx-tui/src/handler.rs @@ -168,7 +168,7 @@ pub fn handle_key_events( } KeyCode::Char('i') => { - if app.focused_block == FocusedBlock::Help { + if app.focused_block == FocusedBlock::Help || app.update_filters { return Ok(()); } app.show_packet_infos_popup = true; @@ -479,7 +479,7 @@ pub fn handle_key_events( } KeyCode::Char('i') => { - if app.focused_block == FocusedBlock::Help { + if app.focused_block == FocusedBlock::Help || app.update_filters { return Ok(()); } app.show_packet_infos_popup = true;