Skip to content

Commit

Permalink
Fixed: Inconsistent behaviour of "q" key in the menus
Browse files Browse the repository at this point in the history
  • Loading branch information
aristocratos committed Nov 8, 2021
1 parent e4ac3d9 commit c133997
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
1 change: 0 additions & 1 deletion src/btop_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,6 @@ namespace Input {
while (cin.rdbuf()->in_avail() == first_num) {
if (first_num-- == 0) break;
cin.ignore(1);

}
}

Expand Down
5 changes: 1 addition & 4 deletions src/btop_menu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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_")) {
Expand Down

0 comments on commit c133997

Please sign in to comment.