# HG changeset patch # User Sam Lantinga # Date 1198964177 0 # Node ID f629d566ec6b02c31d87ee2f7f81744551b3af72 # Parent e9bcf004c32493d4e773f414b95fd5f9e01d41fd Merged fix for bug #508 from SDL 1.2 revision 3495 diff -r e9bcf004c324 -r f629d566ec6b 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);