diff options
Diffstat (limited to 'src/btop_input.cpp')
-rw-r--r-- | src/btop_input.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/btop_input.cpp b/src/btop_input.cpp index 3ec8c73..ebdee3b 100644 --- a/src/btop_input.cpp +++ b/src/btop_input.cpp @@ -4,7 +4,7 @@ you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -238,8 +238,8 @@ namespace Input { void process(const string& key) { if (key.empty()) return; try { - auto filtering = Config::getB("proc_filtering"); - auto vim_keys = Config::getB("vim_keys"); + auto filtering = Config::getB("proc_filtering"); + auto vim_keys = Config::getB("vim_keys"); auto help_key = (vim_keys ? "H" : "h"); auto kill_key = (vim_keys ? "K" : "k"); //? Global input actions @@ -297,12 +297,12 @@ namespace Input { 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; - } - } + old_filter.clear(); + if(key == "down"){ + process("down"); + return; + } + } else if (key == "escape" or key == "mouse_click") { Config::set("proc_filter", old_filter); Config::set("proc_filtering", false); @@ -549,7 +549,7 @@ namespace Input { } catch (const std::exception& e) { - throw std::runtime_error("Input::process(\"" + key + "\") : " + string{e.what()}); + throw std::runtime_error("Input::process(\"" + key + "\") : " + string{e.what()}); } } |