From 89f22bc5ed1a3b60ff9763909579cbff20709d2c Mon Sep 17 00:00:00 2001
From: Eric Wasylishen <ewasylishen@gmail.com>
Date: Wed, 11 Jun 2014 23:38:02 -0600
Subject: [PATCH] Call SDL_Start/StopTextInput

---
 Quake/in_sdl.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Quake/in_sdl.c b/Quake/in_sdl.c
index 60587ca9..1e3e3291 100644
--- a/Quake/in_sdl.c
+++ b/Quake/in_sdl.c
@@ -365,6 +365,11 @@ void IN_UpdateForKeydest (void)
 		Key_ClearStates();
 #if !defined(USE_SDL2)
 		SDL_EnableUNICODE(!gamekey);
+#else
+		if (gamekey)
+			SDL_StopTextInput();
+		else
+			SDL_StartTextInput();
 #endif
 	}
 }