diff --git a/src/gui/exportOptions.cpp b/src/gui/exportOptions.cpp index 7b6e699dd..5240dde2a 100644 --- a/src/gui/exportOptions.cpp +++ b/src/gui/exportOptions.cpp @@ -512,4 +512,7 @@ void FurnaceGUI::drawExport() { } break; } + if (ImGui::IsKeyPressed(ImGuiKey_Escape)) { + ImGui::CloseCurrentPopup(); + } } diff --git a/src/gui/sysManager.cpp b/src/gui/sysManager.cpp index f4fe58c95..576307d1e 100644 --- a/src/gui/sysManager.cpp +++ b/src/gui/sysManager.cpp @@ -133,6 +133,9 @@ void FurnaceGUI::drawSysManager() { } ImGui::CloseCurrentPopup(); } + if (ImGui::IsKeyPressed(ImGuiKey_Escape)) { + ImGui::CloseCurrentPopup(); + } ImGui::EndPopup(); } ImGui::SameLine(); @@ -169,6 +172,9 @@ void FurnaceGUI::drawSysManager() { updateROMExportAvail(); ImGui::CloseCurrentPopup(); } + if (ImGui::IsKeyPressed(ImGuiKey_Escape)) { + ImGui::CloseCurrentPopup(); + } ImGui::EndPopup(); } }