Skip to content

Commit

Permalink
Disable OSK to fix text box input issue
Browse files Browse the repository at this point in the history
Our text boxes break if you open the console while editing one.
Apparently this code is the culprit.
  • Loading branch information
Peter0x44 committed Sep 8, 2024
1 parent 1aa80f2 commit 3356a77
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions engine/client/in_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -1201,6 +1205,8 @@ void Sys_SendKeyEvents(void)
INS_SetOSK(osk);
}
#endif
#endif
// NZP end

while(SDL_PollEvent(&event))
{
Expand Down

0 comments on commit 3356a77

Please sign in to comment.