Skip to content

Commit 269c935

Browse files
committed
update deprecated methods
1 parent a475347 commit 269c935

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

ImFileDialog.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,10 +1406,9 @@ namespace ifd {
14061406
m_finalize();
14071407
}
14081408

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

0 commit comments

Comments
 (0)