From 8a7cb4094490ae1a5506949d3dffed1d360d417c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20L=C3=B6f?= Date: Fri, 21 Aug 2015 16:43:34 +1200 Subject: [PATCH] Quck fix for textbox input under SDL2 --- src/widgets/textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widgets/textbox.cpp b/src/widgets/textbox.cpp index 85b075c860c..223867908ea 100644 --- a/src/widgets/textbox.cpp +++ b/src/widgets/textbox.cpp @@ -585,7 +585,7 @@ void textbox::handle_event(const SDL_Event& event, bool was_forwarded) } #if SDL_VERSION_ATLEAST(2, 0, 0) - ucs4::char_t character = key.scancode; + ucs4::char_t character = key.sym; #else ucs4::char_t character = key.unicode; #endif