changeset 2289:f629d566ec6b

Merged fix for bug #508 from SDL 1.2 revision 3495
author Sam Lantinga <slouken@libsdl.org>
date Sat, 29 Dec 2007 21:36:17 +0000
parents e9bcf004c324
children 323a5af2924b
files src/video/cocoa/SDL_cocoakeyboard.m
diffstat 1 files changed, 11 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);