Skip to content

Commit 0a74b05

Browse files
authored
Merge pull request #36 from sphaero/v1.90.1
Updates for imgui 1.90.x
2 parents a475347 + c89aa80 commit 0a74b05

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ImFileDialog.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include "stb_image.h"
1515

1616
#ifdef _WIN32
17+
#define NOMINMAX
1718
#include <windows.h>
1819
#include <shellapi.h>
1920
#include <lmcons.h>
@@ -1406,10 +1407,9 @@ namespace ifd {
14061407
m_finalize();
14071408
}
14081409

1409-
int escapeKey = ImGui::GetIO().KeyMap[ImGuiKey_Escape];
1410-
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) &&
1411-
escapeKey >= 0 && ImGui::IsKeyPressed(escapeKey))
1412-
m_isOpen = false;
1410+
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_RootAndChildWindows) &&
1411+
ImGuiKey_Escape >= 0 && ImGui::IsKeyPressed(ImGuiKey_Escape))
1412+
m_isOpen = false;
14131413
}
14141414
}
14151415

0 commit comments

Comments
 (0)