From 8aeb53ea8ed624d9a06fc32c6e183e0fc8ababac Mon Sep 17 00:00:00 2001 From: Jimmy Lord Date: Wed, 15 Feb 2023 11:40:14 -0500 Subject: [PATCH] Changed IsKeyPressed param to the typed enum required by imgui 1.89+. --- ImFileDialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ImFileDialog.cpp b/ImFileDialog.cpp index 53832d9..3345b48 100644 --- a/ImFileDialog.cpp +++ b/ImFileDialog.cpp @@ -1408,7 +1408,7 @@ namespace ifd { int escapeKey = ImGui::GetIO().KeyMap[ImGuiKey_Escape]; if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) && - escapeKey >= 0 && ImGui::IsKeyPressed(escapeKey)) + escapeKey >= 0 && ImGui::IsKeyPressed(ImGuiKey_Escape)) m_isOpen = false; } }