We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a475347 + c89aa80 commit 0a74b05Copy full SHA for 0a74b05
ImFileDialog.cpp
@@ -14,6 +14,7 @@
14
#include "stb_image.h"
15
16
#ifdef _WIN32
17
+#define NOMINMAX
18
#include <windows.h>
19
#include <shellapi.h>
20
#include <lmcons.h>
@@ -1406,10 +1407,9 @@ namespace ifd {
1406
1407
m_finalize();
1408
}
1409
- int escapeKey = ImGui::GetIO().KeyMap[ImGuiKey_Escape];
1410
- if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) &&
1411
- escapeKey >= 0 && ImGui::IsKeyPressed(escapeKey))
1412
- m_isOpen = false;
+ if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) &&
+ ImGuiKey_Escape >= 0 && ImGui::IsKeyPressed(ImGuiKey_Escape))
+ m_isOpen = false;
1413
1414
1415
0 commit comments