From 5902d6622ca918b90fab99fe0a08ad436273ddac Mon Sep 17 00:00:00 2001 From: Susko3 Date: Thu, 7 May 2026 13:10:47 +0200 Subject: [PATCH] Enable text editing events in checkkeys (cherry picked from commit 2949a0d6d51a591e49c189769d2b09ba24db8efe) --- test/checkkeys.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/checkkeys.c b/test/checkkeys.c index aaaff1462f..9c2e28ec93 100644 --- a/test/checkkeys.c +++ b/test/checkkeys.c @@ -467,6 +467,9 @@ int main(int argc, char *argv[]) /* Disable mouse emulation */ SDL_SetHint(SDL_HINT_TOUCH_MOUSE_EVENTS, "0"); + /* Enable text editing events and tell SDL that we'll handle rendering compositions. */ + SDL_SetHint(SDL_HINT_IME_IMPLEMENTED_UI, "composition"); + /* Initialize SDL */ if (!SDLTest_CommonInit(state)) { SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't initialize SDL: %s", SDL_GetError());