| 2798 | } |
| 2799 | |
| 2800 | void IGFD::FileDialogInternal::EndFrame() { |
| 2801 | // directory change |
| 2802 | if (fileManager.pathClicked) { |
| 2803 | fileManager.OpenCurrentPath(*this); |
| 2804 | } |
| 2805 | |
| 2806 | if (fileManager.devicesClicked) { |
| 2807 | if (fileManager.GetDevices()) { |
| 2808 | fileManager.ApplyFilteringOnFileList(*this); |
| 2809 | } |
| 2810 | } |
| 2811 | |
| 2812 | if (fileManager.inputPathActivated) { |
| 2813 | auto gio = ImGui::GetIO(); |
| 2814 | if (ImGui::IsKeyReleased(ImGuiKey_Enter)) { |
| 2815 | fileManager.SetCurrentPath(std::string(fileManager.inputPathBuffer)); |
| 2816 | fileManager.OpenCurrentPath(*this); |
| 2817 | fileManager.inputPathActivated = false; |
| 2818 | } |
| 2819 | if (ImGui::IsKeyReleased(ImGuiKey_Escape)) { |
| 2820 | fileManager.inputPathActivated = false; |
| 2821 | } |
| 2822 | } |
| 2823 | |
| 2824 | if (ImGui::IsKeyDown(ImGuiMod_Ctrl)) { |
| 2825 | if (ImGui::IsKeyDown(SelectAllFilesKey)) { |
| 2826 | fileManager.SelectAllFileNames(); |
| 2827 | } |
| 2828 | } |
| 2829 | } |
| 2830 | |
| 2831 | void IGFD::FileDialogInternal::ResetForNewDialog() { |
| 2832 | } |
no test coverage detected