summaryrefslogtreecommitdiff
path: root/macosx/Source/hotkeys.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/Source/hotkeys.m')
-rw-r--r--macosx/Source/hotkeys.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/macosx/Source/hotkeys.m b/macosx/Source/hotkeys.m
index 96d89e8b..9945ea29 100644
--- a/macosx/Source/hotkeys.m
+++ b/macosx/Source/hotkeys.m
@@ -127,7 +127,11 @@ void attachHotkeys() {
// GPU key presses
NSEvent* (^gpuKeypress)(NSEvent*) = ^(NSEvent *event) {
if (event.modifierFlags & NSControlKeyMask) {
- GPU_keypressed([event keyCode]);
+ if ([event keyCode] == 0x67) { // F11
+ GPU_toggleDebug();
+ } else {
+ GPU_keypressed([event keyCode]);
+ }
return (NSEvent*)nil;
} else {
return event;