close with Esc
This commit is contained in:
parent
6d16ec08b5
commit
826c34ecc6
1 changed files with 4 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue