Added or and if statement

This commit is contained in:
NavigationHazard 2022-02-08 10:36:21 +01:00
parent eebcb08e49
commit 3887389e0a

View file

@ -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);