Exit with ESC (#1195)

This commit is contained in:
Yohanan 2023-07-03 22:32:54 -03:00 committed by GitHub
parent 4fe0e1d06a
commit a3a8dd7f0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -140,7 +140,7 @@ void FurnaceGUI::drawNewSong() {
ImGui::SameLine();
if (ImGui::Button("Cancel")) {
if (ImGui::Button("Cancel") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
ImGui::CloseCurrentPopup();
}