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.
This commit is contained in:
peter0x44 2024-09-08 23:11:23 +01:00
parent 1aa80f22df
commit 3356a77745

View file

@ -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))
{