Mercurial > sdl-ios-xcode
diff src/video/cocoa/SDL_cocoaevents.m @ 3280:00cace2d9080
Merged a cleaned up version of Jiang's code changes from Google Summer of Code 2009
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 19 Sep 2009 13:29:40 +0000 |
parents | 1282a042d530 |
children | e7eec78e4b92 |
line wrap: on
line diff
--- a/src/video/cocoa/SDL_cocoaevents.m Sat Sep 19 12:48:52 2009 +0000 +++ b/src/video/cocoa/SDL_cocoaevents.m Sat Sep 19 13:29:40 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) || [event type] == NSFlagsChanged) + [NSApp sendEvent: event]; break; default: [NSApp sendEvent:event];