aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/m4/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/events.cpp b/engines/m4/events.cpp
index 0acf0cd6e4..1de9e97936 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 << 24);
+ _keyCode = (int32)_event.kbd.keycode | ((_event.kbd.flags & 7) << 24);
break;