mirror of
https://github.com/yawut/SDL.git
synced 2026-08-26 10:44:39 -05:00
The beeping stopped.
And, other people may need to catch key events using their own delegate.
This commit is contained in:
@@ -206,23 +206,17 @@ Cocoa_PumpEvents(_THIS)
|
||||
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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user