diff options
-rw-r--r-- | engines/m4/events.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/events.cpp b/engines/m4/events.cpp index 1de9e97936..c0ca412f11 100644 --- a/engines/m4/events.cpp +++ b/engines/m4/events.cpp @@ -80,7 +80,7 @@ M4EventType Events::handleEvents() { } _ctrlFlag = false; } - _keyCode = (int32)_event.kbd.keycode | ((_event.kbd.flags & 7) << 24); + _keyCode = (int32)_event.kbd.keycode | ((_event.kbd.flags & (Common::KBD_CTRL | Common::KBD_ALT | Common::KBD_SHIFT)) << 24); break; |