ImFileDialog icon indicating copy to clipboard operation
ImFileDialog copied to clipboard

Issue with ImGui 1.90.1

Open sphaero opened this issue 1 year ago • 0 comments

Had make a slight change handling the ESC key in order to build. Not sure what the escapeKey >= 0 was doing?

diff --git a/ImFileDialog.cpp b/ImFileDialog.cpp
index 53832d9..439f0e9 100644
--- a/ImFileDialog.cpp
+++ b/ImFileDialog.cpp
@@ -1406,9 +1406,9 @@ namespace ifd {
                                m_finalize();
                }
 
-               int escapeKey = ImGui::GetIO().KeyMap[ImGuiKey_Escape];
                if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) &&
-                        escapeKey >= 0 && ImGui::IsKeyPressed(escapeKey))
+                        ImGui::IsKeyPressed(ImGuiKey_Escape))
                        m_isOpen = false;
        }
 }

sphaero avatar Apr 02 '24 15:04 sphaero