mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-28 14:11:35 +02: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 redraw = true;
|
||||
if (filtering) {
|
||||
if (key == "enter") {
|
||||
Config::set("proc_filter", Proc::filter.text);
|
||||
Config::set("proc_filtering", false);
|
||||
old_filter.clear();
|
||||
}
|
||||
else if (key == "down") {
|
||||
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 == "escape" or key == "mouse_click") {
|
||||
Config::set("proc_filter", old_filter);
|
||||
|
Loading…
Reference in New Issue
Block a user