From 3887389e0ac813451592bab0f60dfacab2f1381e Mon Sep 17 00:00:00 2001 From: NavigationHazard Date: Tue, 8 Feb 2022 10:36:21 +0100 Subject: [PATCH] Added or and if statement --- src/btop_input.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/btop_input.cpp b/src/btop_input.cpp index 273990d..14cbbe3 100644 --- a/src/btop_input.cpp +++ b/src/btop_input.cpp @@ -289,17 +289,15 @@ namespace Input { bool no_update = true; bool redraw = true; if (filtering) { - if (key == "enter") { + if (key == "enter" or key == "down") { Config::set("proc_filter", Proc::filter.text); Config::set("proc_filtering", false); old_filter.clear(); + if(key == "down"){ + process("down"); + return; + } } - else if (key == "down") { - Config::set("proc_filter", Proc::filter.text); - Config::set("proc_filtering", false); - old_filter.clear(); - process("down"); - } else if (key == "escape" or key == "mouse_click") { Config::set("proc_filter", old_filter); Config::set("proc_filtering", false);