From 6ee0e2173aa3275d1c928c600a1d6b6b6b2db367 Mon Sep 17 00:00:00 2001 From: Peter0x44 Date: Sun, 16 Jun 2024 08:34:07 -0700 Subject: [PATCH] Fix textbox input issue by disabling OSK (#3) --- engine/client/in_sdl.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/client/in_sdl.c b/engine/client/in_sdl.c index 617d6ce30..5f2f416a5 100644 --- a/engine/client/in_sdl.c +++ b/engine/client/in_sdl.c @@ -1099,6 +1099,11 @@ void Sys_SendKeyEvents(void) } else if (Key_Dest_Has(kdm_game)) osk |= sys_osk.ival; +// disable OSK +// This causes text input boxes to break if the console is opened while one is +// active. +// It is not needed or useful for NZP anyway. +#if 0 if (osk) { SDL_Rect rect; @@ -1136,6 +1141,8 @@ void Sys_SendKeyEvents(void) } #endif +#endif + while(SDL_PollEvent(&event)) {