| 2860 | } |
| 2861 | |
| 2862 | void IGFD::FileDialogInternal::EndFrame() { |
| 2863 | // directory change |
| 2864 | if (fileManager.pathClicked) { |
| 2865 | fileManager.OpenCurrentPath(*this); |
| 2866 | } |
| 2867 | |
| 2868 | if (fileManager.devicesClicked) { |
| 2869 | if (fileManager.GetDevices()) { |
| 2870 | fileManager.ApplyFilteringOnFileList(*this); |
| 2871 | } |
| 2872 | } |
| 2873 | |
| 2874 | if (fileManager.inputPathActivated) { |
| 2875 | auto gio = ImGui::GetIO(); |
| 2876 | if (ImGui::IsKeyReleased(ImGuiKey_Enter)) { |
| 2877 | fileManager.SetCurrentPath(std::string(fileManager.inputPathBuffer)); |
| 2878 | fileManager.OpenCurrentPath(*this); |
| 2879 | fileManager.inputPathActivated = false; |
| 2880 | } |
| 2881 | if (ImGui::IsKeyReleased(ImGuiKey_Escape)) { |
| 2882 | fileManager.inputPathActivated = false; |
| 2883 | } |
| 2884 | } |
| 2885 | |
| 2886 | if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) { |
| 2887 | if (ImGui::IsKeyDown(SelectAllFilesKey)) { |
| 2888 | fileManager.SelectAllFileNames(); |
| 2889 | } |
| 2890 | } |
| 2891 | } |
| 2892 | |
| 2893 | void IGFD::FileDialogInternal::ResetForNewDialog() { |
| 2894 | } |
no test coverage detected