src/video/cocoa/SDL_cocoaevents.m
changeset 3683 4c5ab6841fdc
parent 3624 9b1af1049f66
child 4498 3d91e31fcf71
equal deleted inserted replaced
3682:e4009cea0e82 3683:4c5ab6841fdc
   210         case NSKeyDown:
   210         case NSKeyDown:
   211         case NSKeyUp:
   211         case NSKeyUp:
   212         case NSFlagsChanged:
   212         case NSFlagsChanged:
   213             Cocoa_HandleKeyEvent(_this, event);
   213             Cocoa_HandleKeyEvent(_this, event);
   214             /* Fall through to pass event to NSApp; er, nevermind... */
   214             /* Fall through to pass event to NSApp; er, nevermind... */
   215             /* FIXME: Find a way to stop the beeping, using delegate */
       
   216 
   215 
   217             /* Add to support system-wide keyboard shortcuts like CMD+Space */
   216             /* Add to support system-wide keyboard shortcuts like CMD+Space */
   218             if (([event modifierFlags] & NSCommandKeyMask) || [event type] == NSFlagsChanged)
   217             if (([event modifierFlags] & NSCommandKeyMask) || [event type] == NSFlagsChanged)
   219                [NSApp sendEvent: event];
   218                [NSApp sendEvent: event];
   220             break;
   219             break;