mirror of
https://github.com/aristocratos/btop.git
synced 2024-09-29 22:51:35 +02:00
Merge pull request #259 from NavigationHazard/main
Added Request - Arrow only after use of "f" when filtering processes
This commit is contained in:
commit
59a1868ce6
@ -289,11 +289,15 @@ 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"){
|
||||||
|
process("down");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
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);
|
||||||
Config::set("proc_filtering", false);
|
Config::set("proc_filtering", false);
|
||||||
|
Loading…
Reference in New Issue
Block a user