closing more popups with esc

This commit is contained in:
yohannd1 2024-12-19 18:23:56 -03:00 committed by tildearrow
parent 674d3c6b12
commit 73c263c2b4
2 changed files with 9 additions and 0 deletions

View file

@ -512,4 +512,7 @@ void FurnaceGUI::drawExport() {
} }
break; break;
} }
if (ImGui::IsKeyPressed(ImGuiKey_Escape)) {
ImGui::CloseCurrentPopup();
}
} }

View file

@ -133,6 +133,9 @@ void FurnaceGUI::drawSysManager() {
} }
ImGui::CloseCurrentPopup(); ImGui::CloseCurrentPopup();
} }
if (ImGui::IsKeyPressed(ImGuiKey_Escape)) {
ImGui::CloseCurrentPopup();
}
ImGui::EndPopup(); ImGui::EndPopup();
} }
ImGui::SameLine(); ImGui::SameLine();
@ -169,6 +172,9 @@ void FurnaceGUI::drawSysManager() {
updateROMExportAvail(); updateROMExportAvail();
ImGui::CloseCurrentPopup(); ImGui::CloseCurrentPopup();
} }
if (ImGui::IsKeyPressed(ImGuiKey_Escape)) {
ImGui::CloseCurrentPopup();
}
ImGui::EndPopup(); ImGui::EndPopup();
} }
} }