Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with ImGui 1.90.1 #35

Open
sphaero opened this issue Apr 2, 2024 · 0 comments
Open

Issue with ImGui 1.90.1 #35

sphaero opened this issue Apr 2, 2024 · 0 comments

Comments

@sphaero
Copy link
Contributor

sphaero commented Apr 2, 2024

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;
        }
 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant