Merged fix for bug #508 from SDL 1.2 revision 3495
authorSam Lantinga <slouken@libsdl.org>
Sat, 29 Dec 2007 21:36:17 +0000
changeset 2289 f629d566ec6b
parent 2288 e9bcf004c324
child 2290 323a5af2924b
Merged fix for bug #508 from SDL 1.2 revision 3495
src/video/cocoa/SDL_cocoakeyboard.m
--- a/src/video/cocoa/SDL_cocoakeyboard.m	Sat Dec 29 20:13:23 2007 +0000
+++ b/src/video/cocoa/SDL_cocoakeyboard.m	Sat Dec 29 21:36:17 2007 +0000
@@ -54,6 +54,16 @@
     #define NX_DEVICERCTLKEYMASK    0x00002000
 #endif
 
+@interface SDLTranslatorResponder : NSTextView
+{
+}
+- (void) doCommandBySelector:(SEL)myselector;
+@end
+
+@implementation SDLTranslatorResponder
+- (void) doCommandBySelector:(SEL) myselector {}
+@end
+
 /* This is the original behavior, before support was added for 
  * differentiating between left and right versions of the keys.
  */
@@ -330,7 +340,7 @@
     NSAutoreleasePool *pool;
 
     pool = [[NSAutoreleasePool alloc] init];
-    data->fieldEdit = [[NSTextView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 0.0, 0.0)];
+    data->fieldEdit = [[SDLTranslatorResponder alloc] initWithFrame:NSMakeRect(0.0, 0.0, 0.0, 0.0)];
     [pool release];
     
     SDL_zero(keyboard);