From f675afbe7367e7924a03acbd1e1e362e2d201dd7 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Sat, 30 Mar 2024 10:28:38 +0100 Subject: [PATCH] fix sdl3 imgui text input until pr is merged https://github.com/ocornut/imgui/pull/7452 --- external/imgui/imgui/backends/imgui_impl_sdl3.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/external/imgui/imgui/backends/imgui_impl_sdl3.cpp b/external/imgui/imgui/backends/imgui_impl_sdl3.cpp index 2e261ef..4f9664d 100644 --- a/external/imgui/imgui/backends/imgui_impl_sdl3.cpp +++ b/external/imgui/imgui/backends/imgui_impl_sdl3.cpp @@ -117,6 +117,9 @@ static void ImGui_ImplSDL3_SetPlatformImeData(ImGuiViewport*, ImGuiPlatformImeDa r.w = 1; r.h = (int)data->InputLineHeight; SDL_SetTextInputRect(&r); + SDL_StartTextInput(); + } else { + SDL_StopTextInput(); } }