mirror of https://github.com/aristocratos/btop.git
Fixed: Inconsistent behaviour of "q" key in the menus
This commit is contained in:
parent
e4ac3d9b21
commit
c133997b21
|
@ -179,7 +179,6 @@ namespace Input {
|
|||
while (cin.rdbuf()->in_avail() == first_num) {
|
||||
if (first_num-- == 0) break;
|
||||
cin.ignore(1);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -892,10 +892,7 @@ namespace Menu {
|
|||
};
|
||||
}
|
||||
}
|
||||
else if (key == "q") {
|
||||
exit(0);
|
||||
}
|
||||
else if (is_in(key, "escape", "m", "mouse_click")) {
|
||||
else if (is_in(key, "escape", "q", "m", "mouse_click")) {
|
||||
return Closed;
|
||||
}
|
||||
else if (key.starts_with("button_")) {
|
||||
|
|
Loading…
Reference in New Issue