Browse Source

engine: platform: sdl: fixed Key_Event callback when text input enabled

pull/2/head
SNMetamorph 3 years ago committed by a1batross
parent
commit
8044d23e7f
  1. 2
      engine/platform/sdl/events.c

2
engine/platform/sdl/events.c

@ -122,7 +122,7 @@ static void SDLash_KeyEvent( SDL_KeyboardEvent key )
#endif #endif
qboolean numLock = SDL_GetModState() & KMOD_NUM; qboolean numLock = SDL_GetModState() & KMOD_NUM;
if( SDL_IsTextInputActive() && down ) if( SDL_IsTextInputActive() && down && cls.key_dest != key_game )
{ {
if( SDL_GetModState() & KMOD_CTRL ) if( SDL_GetModState() & KMOD_CTRL )
{ {

Loading…
Cancel
Save