close with Esc

This commit is contained in:
tildearrow 2025-09-29 06:00:50 -05:00
parent 6d16ec08b5
commit 826c34ecc6

View file

@ -1323,10 +1323,13 @@ bool FurnaceFilePicker::draw(ImGuiWindowFlags winFlags) {
ImGui::CloseCurrentPopup();
}
ImGui::SameLine();
if (ImGui::Button("No")) {
if (ImGui::Button("No") || ImGui::IsKeyPressed(ImGuiKey_Escape)) {
ImGui::CloseCurrentPopup();
}
ImGui::EndPopup();
} else if (isModal && !noClose && ImGui::IsKeyPressed(ImGuiKey_Escape)) {
curStatus=FP_STATUS_CLOSED;
isOpen=false;
}
}
if (!isEmbed) {