impr: Allow more popups to be closed with Escape

This commit is contained in:
WerWolv
2023-12-13 15:08:27 +01:00
parent 92043a3d23
commit 346f1362c6
10 changed files with 24 additions and 6 deletions

View File

@@ -65,6 +65,9 @@ namespace hex::plugin::builtin::recent {
ImGui::EndTable();
}
if (ImGui::IsKeyPressed(ImGui::GetKeyIndex(ImGuiKey_Escape)))
this->close();
}
[[nodiscard]] ImGuiWindowFlags getFlags() const override {