From d43bdd4275059c4ad5d939f5deded034533e1705 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Tue, 25 Sep 2012 20:58:23 -0700 Subject: [PATCH] The beeping stopped. And, other people may need to catch key events using their own delegate. --- src/video/cocoa/SDL_cocoaevents.m | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/video/cocoa/SDL_cocoaevents.m b/src/video/cocoa/SDL_cocoaevents.m index 11c6b4e08..3d35539cd 100755 --- a/src/video/cocoa/SDL_cocoaevents.m +++ b/src/video/cocoa/SDL_cocoaevents.m @@ -206,23 +206,17 @@ - (BOOL)application:(NSApplication *)theApplication openFile:(NSString *)filenam case NSMouseMoved: case NSScrollWheel: Cocoa_HandleMouseEvent(_this, event); - /* Pass through to NSApp to make sure everything stays in sync */ - [NSApp sendEvent:event]; break; case NSKeyDown: case NSKeyUp: case NSFlagsChanged: Cocoa_HandleKeyEvent(_this, event); - /* Fall through to pass event to NSApp; er, nevermind... */ - - /* 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]; break; } + /* Pass through to NSApp to make sure everything stays in sync */ + [NSApp sendEvent:event]; } [pool release]; }