From 44b8df047af379667e5f378c756c5357d5ea0f76 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 1 Aug 2017 22:58:12 -0400 Subject: [PATCH] fixup --- src/hotkey/command_executor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hotkey/command_executor.cpp b/src/hotkey/command_executor.cpp index db8e089938bef..c06b54541a78c 100644 --- a/src/hotkey/command_executor.cpp +++ b/src/hotkey/command_executor.cpp @@ -521,7 +521,7 @@ static void event_execute( const SDL_Event& event, command_executor* executor) if(!CKey::is_uncomposable(event.key) && !(mods & KMOD_CTRL) && !(mods & KMOD_ALT) && !(mods & KMOD_GUI)) { return; } - } else if(event.type == SDL_TEXTINPUT && utf8::size(utf8::string(event.text.text, event.text.text + 32)) == 1) { + } else if(event.type == SDL_TEXTINPUT && event.text.text[31] == 0 && utf8::size(utf8::string(event.text.text)) == 1) { return; }