Skip to content

Commit

Permalink
Fix textbox input issue by disabling OSK (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter0x44 authored Jun 16, 2024
1 parent db51ce8 commit 6ee0e21
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions engine/client/in_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -1136,6 +1141,8 @@ void Sys_SendKeyEvents(void)
}
#endif

#endif


while(SDL_PollEvent(&event))
{
Expand Down

0 comments on commit 6ee0e21

Please sign in to comment.