summaryrefslogtreecommitdiff
path: root/video/cocoa_v.m
diff options
context:
space:
mode:
Diffstat (limited to 'video/cocoa_v.m')
-rw-r--r--video/cocoa_v.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/cocoa_v.m b/video/cocoa_v.m
index e55e40b14..e10e87dc2 100644
--- a/video/cocoa_v.m
+++ b/video/cocoa_v.m
@@ -347,8 +347,9 @@ static void QZ_KeyEvent(unsigned short keycode, unsigned short unicode, BOOL dow
}
if (down) {
- _pressed_key = QZ_MapKey(keycode) | unicode;
- DEBUG(driver, 2)("cocoa_v: QZ_KeyEvent: %x (%x), down, mapping: %x", keycode, unicode, _pressed_key);
+ uint32 pressed_key = QZ_MapKey(keycode) | unicode;
+ HandleKeypress(pressed_key);
+ DEBUG(driver, 2)("cocoa_v: QZ_KeyEvent: %x (%x), down, mapping: %x", keycode, unicode, pressed_key);
} else {
DEBUG(driver, 2)("cocoa_v: QZ_KeyEvent: %x (%x), up", keycode, unicode);
}