mirror of https://github.com/buggins/dlangui.git
fix Ctrl+Space processing in SDL backend) - close #160
This commit is contained in:
parent
5da635b333
commit
c6bc225a1b
|
@ -777,6 +777,8 @@ class SDLWindow : Window {
|
||||||
string str = fromStringz(s).dup;
|
string str = fromStringz(s).dup;
|
||||||
dstring ds = toUTF32(str);
|
dstring ds = toUTF32(str);
|
||||||
uint flags = convertKeyFlags(SDL_GetModState());
|
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));
|
bool res = dispatchKeyEvent(new KeyEvent(KeyAction.Text, 0, flags, ds));
|
||||||
if (res) {
|
if (res) {
|
||||||
debug(DebugSDL) Log.d("Calling update() after text event");
|
debug(DebugSDL) Log.d("Calling update() after text event");
|
||||||
|
|
Loading…
Reference in New Issue