mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-29 19:40:56 +12:00
Added or and if statement
This commit is contained in:
parent
eebcb08e49
commit
3887389e0a
|
@ -289,16 +289,14 @@ namespace Input {
|
||||||
bool no_update = true;
|
bool no_update = true;
|
||||||
bool redraw = true;
|
bool redraw = true;
|
||||||
if (filtering) {
|
if (filtering) {
|
||||||
if (key == "enter") {
|
if (key == "enter" or key == "down") {
|
||||||
Config::set("proc_filter", Proc::filter.text);
|
Config::set("proc_filter", Proc::filter.text);
|
||||||
Config::set("proc_filtering", false);
|
Config::set("proc_filtering", false);
|
||||||
old_filter.clear();
|
old_filter.clear();
|
||||||
}
|
if(key == "down"){
|
||||||
else if (key == "down") {
|
process("down");
|
||||||
Config::set("proc_filter", Proc::filter.text);
|
return;
|
||||||
Config::set("proc_filtering", false);
|
}
|
||||||
old_filter.clear();
|
|
||||||
process("down");
|
|
||||||
}
|
}
|
||||||
else if (key == "escape" or key == "mouse_click") {
|
else if (key == "escape" or key == "mouse_click") {
|
||||||
Config::set("proc_filter", old_filter);
|
Config::set("proc_filter", old_filter);
|
||||||
|
|
Loading…
Reference in a new issue