From c6bc225a1be9cbc88ad09cabdb9a37deac37e4e5 Mon Sep 17 00:00:00 2001 From: Vadim Lopatin Date: Thu, 28 Jan 2016 13:38:04 +0300 Subject: [PATCH] fix Ctrl+Space processing in SDL backend) - close #160 --- src/dlangui/platforms/sdl/sdlapp.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dlangui/platforms/sdl/sdlapp.d b/src/dlangui/platforms/sdl/sdlapp.d index 9c28af2f..421a4375 100644 --- a/src/dlangui/platforms/sdl/sdlapp.d +++ b/src/dlangui/platforms/sdl/sdlapp.d @@ -777,6 +777,8 @@ class SDLWindow : Window { string str = fromStringz(s).dup; dstring ds = toUTF32(str); uint flags = convertKeyFlags(SDL_GetModState()); + if (flags & KeyFlag.Control || flags & KeyFlag.Alt || flags & KeyFlag.Menu) + return true; bool res = dispatchKeyEvent(new KeyEvent(KeyAction.Text, 0, flags, ds)); if (res) { debug(DebugSDL) Log.d("Calling update() after text event");