The beeping stopped.
authorSam Lantinga
Tue, 25 Sep 2012 20:58:23 -0700
changeset 64616d17371235d3
parent 6459 df49d3db1cb9
child 6462 5e09ac1aba80
The beeping stopped.
And, other people may need to catch key events using their own delegate.
src/video/cocoa/SDL_cocoaevents.m
     1.1 --- a/src/video/cocoa/SDL_cocoaevents.m	Tue Sep 25 20:49:43 2012 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoaevents.m	Tue Sep 25 20:58:23 2012 -0700
     1.3 @@ -206,23 +206,17 @@
     1.4          case NSMouseMoved:
     1.5          case NSScrollWheel:
     1.6              Cocoa_HandleMouseEvent(_this, event);
     1.7 -            /* Pass through to NSApp to make sure everything stays in sync */
     1.8 -            [NSApp sendEvent:event];
     1.9              break;
    1.10          case NSKeyDown:
    1.11          case NSKeyUp:
    1.12          case NSFlagsChanged:
    1.13              Cocoa_HandleKeyEvent(_this, event);
    1.14 -            /* Fall through to pass event to NSApp; er, nevermind... */
    1.15 -
    1.16 -            /* Add to support system-wide keyboard shortcuts like CMD+Space */
    1.17 -            if (([event modifierFlags] & NSCommandKeyMask) || [event type] == NSFlagsChanged)
    1.18 -               [NSApp sendEvent: event];
    1.19              break;
    1.20          default:
    1.21 -            [NSApp sendEvent:event];
    1.22              break;
    1.23          }
    1.24 +        /* Pass through to NSApp to make sure everything stays in sync */
    1.25 +        [NSApp sendEvent:event];
    1.26      }
    1.27      [pool release];
    1.28  }