From 7a79fecaa715e12889b7f305904fd91520c9f31f Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat, 10 Jan 2026 00:26:01 +0200
Subject: [PATCH 68/68] sdl3: Enable text input

Makes text edit widgets functional.

See RM #1885

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 client/gui-sdl3/graphics.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/client/gui-sdl3/graphics.c b/client/gui-sdl3/graphics.c
index b5f8debdcb..5b3ced0ff6 100644
--- a/client/gui-sdl3/graphics.c
+++ b/client/gui-sdl3/graphics.c
@@ -634,6 +634,11 @@ bool set_video_mode(unsigned width, unsigned height, unsigned flags_in)
     return FALSE;
   }
 
+  if (!SDL_StartTextInput(main_data.screen)) {
+    log_fatal(_("Failed to start text input: %s"), SDL_GetError());
+    return FALSE;
+  }
+
   return TRUE;
 }
 
-- 
2.51.0

