From df7489f8e2777608fc8c7d3c624830c433e7f523 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Thu, 21 Nov 2024 18:40:42 +0800 Subject: [PATCH] [fix] update imgui to v1.91.5-docking to fix: inputText cannot input text after add a space in remote id --- src/single_window/remote_peer_window.cpp | 5 ++--- xmake.lua | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/single_window/remote_peer_window.cpp b/src/single_window/remote_peer_window.cpp index fe191be..44ab25d 100644 --- a/src/single_window/remote_peer_window.cpp +++ b/src/single_window/remote_peer_window.cpp @@ -61,10 +61,9 @@ int Render::RemoteWindow() { } bool enter_pressed = ImGui::InputText( "##remote_id_", remote_id_display_, IM_ARRAYSIZE(remote_id_display_), - ImGuiInputTextFlags_CharsUppercase | + ImGuiInputTextFlags_CharsDecimal | ImGuiInputTextFlags_EnterReturnsTrue | - ImGuiInputTextFlags_CallbackEdit | - ImGuiInputTextFlags_CharsNoBlank, + ImGuiInputTextFlags_CallbackEdit, InputTextCallback); ImGui::PopStyleVar(); diff --git a/xmake.lua b/xmake.lua index e41abbb..cf8bee3 100644 --- a/xmake.lua +++ b/xmake.lua @@ -17,7 +17,7 @@ if is_mode("debug") then end add_requires("spdlog 1.14.1", {system = false}) -add_requires("imgui v1.91.4-docking", {configs = {sdl2 = true, sdl2_renderer = true}}) +add_requires("imgui v1.91.5-docking", {configs = {sdl2 = true, sdl2_renderer = true}}) add_requires("miniaudio 0.11.21") add_requires("openssl3 3.3.2", {system = false})