Fixed: Inconsistent behaviour of "q" key in the menus

This commit is contained in:
aristocratos 2021-11-08 18:48:11 +01:00
parent e4ac3d9b21
commit c133997b21
2 changed files with 1 additions and 5 deletions

View File

@ -179,7 +179,6 @@ namespace Input {
while (cin.rdbuf()->in_avail() == first_num) {
if (first_num-- == 0) break;
cin.ignore(1);
}
}

View File

@ -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_")) {