fix Ctrl+Space processing in SDL backend) - close #160

This commit is contained in:
Vadim Lopatin 2016-01-28 13:38:04 +03:00
parent 5da635b333
commit c6bc225a1b
1 changed files with 2 additions and 0 deletions

View File

@ -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");