From eebcb08e49d7204dd91a8e459a3825e50ce89676 Mon Sep 17 00:00:00 2001 From: NavigationHazard Date: Tue, 8 Feb 2022 01:24:28 +0100 Subject: [PATCH] Best of Both Worlds. Both ways are workings now. Using enter and then moving with arrows or just using arrow down. --- src/btop_input.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/btop_input.cpp b/src/btop_input.cpp index ca4e085..273990d 100644 --- a/src/btop_input.cpp +++ b/src/btop_input.cpp @@ -292,13 +292,14 @@ namespace Input { if (key == "enter") { Config::set("proc_filter", Proc::filter.text); Config::set("proc_filtering", false); - old_filter.clear(); - } + old_filter.clear(); + } else if (key == "down") { - Config::set("proc_filter", Proc::filter.text); + 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);