# HG changeset patch # User Jiang Jiang # Date 1243249769 0 # Node ID 05d83835f41b2d2d464fd618b270444e01d699a9 # Parent da6cbfa5b5f29dc43e17ed6ba105b578515c26d8 Support system-wide keyboard shortcuts on Mac diff -r da6cbfa5b5f2 -r 05d83835f41b src/video/cocoa/SDL_cocoaevents.m --- a/src/video/cocoa/SDL_cocoaevents.m Mon May 25 02:42:45 2009 +0000 +++ b/src/video/cocoa/SDL_cocoaevents.m Mon May 25 11:09:29 2009 +0000 @@ -193,6 +193,10 @@ Cocoa_HandleKeyEvent(_this, event); /* Fall through to pass event to NSApp; er, nevermind... */ /* FIXME: Find a way to stop the beeping, using delegate */ + + /* Add to support system-wide keyboard shortcuts like CMD+Space */ + if ([event modifierFlags] & NSCommandKeyMask) + [NSApp sendEvent: event]; break; default: [NSApp sendEvent:event];