src/video/cocoa/SDL_cocoawindow.m
changeset 6514 e94c2eaaa1ab
parent 6489 31449ea8f934
child 6662 698c2e533a7e
--- a/src/video/cocoa/SDL_cocoawindow.m	Sat Sep 29 01:12:40 2012 -0700
+++ b/src/video/cocoa/SDL_cocoawindow.m	Sat Sep 29 02:50:42 2012 -0700
@@ -224,6 +224,29 @@
     }
 }
 
+// We'll respond to key events by doing nothing so we don't beep.
+// We could handle key messages here, but we lose some in the NSApp dispatch,
+// where they get converted to action messages, etc.
+- (void)flagsChanged:(NSEvent *)theEvent
+{
+    //Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
+}
+- (void)keyDown:(NSEvent *)theEvent
+{
+    //Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
+}
+- (void)keyUp:(NSEvent *)theEvent
+{
+    //Cocoa_HandleKeyEvent(SDL_GetVideoDevice(), theEvent);
+}
+
+// We'll respond to selectors by doing nothing so we don't beep.
+// The escape key gets converted to a "cancel" selector, etc.
+- (void)doCommandBySelector:(SEL)aSelector
+{
+    //NSLog(@"doCommandBySelector: %@\n", NSStringFromSelector(aSelector));
+}
+
 - (void)mouseDown:(NSEvent *)theEvent
 {
     int button;