Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
The beeping stopped.
Browse files Browse the repository at this point in the history
And, other people may need to catch key events using their own delegate.
  • Loading branch information
slouken committed Sep 26, 2012
1 parent a0c0449 commit d43bdd4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/video/cocoa/SDL_cocoaevents.m
Expand Up @@ -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];
}
Expand Down

0 comments on commit d43bdd4

Please sign in to comment.