From 3356a777456bdba342556f13b184e47f4dc8e882 Mon Sep 17 00:00:00 2001 From: peter0x44 Date: Sun, 8 Sep 2024 23:11:23 +0100 Subject: [PATCH] Disable OSK to fix text box input issue Our text boxes break if you open the console while editing one. Apparently this code is the culprit. --- engine/client/in_sdl.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/engine/client/in_sdl.c b/engine/client/in_sdl.c index 054846e77..3868cf920 100644 --- a/engine/client/in_sdl.c +++ b/engine/client/in_sdl.c @@ -1185,6 +1185,10 @@ void Sys_SendKeyEvents(void) } #endif +// NZP Begin +// Disable OSK, it breaks our input boxes if you open the console while editing one + +#if 0 #ifdef HAVE_SDL_TEXTINPUT { SDL_bool osk = Key_Dest_Has(kdm_console|kdm_cwindows|kdm_message); @@ -1201,6 +1205,8 @@ void Sys_SendKeyEvents(void) INS_SetOSK(osk); } #endif +#endif +// NZP end while(SDL_PollEvent(&event)) {