From 9e2c55b30cfc5bea0b89df18161247d4d7d70b17 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 29 Dec 2007 21:36:17 +0000 Subject: [PATCH] Merged fix for bug #508 from SDL 1.2 revision 3495 --- src/video/cocoa/SDL_cocoakeyboard.m | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/video/cocoa/SDL_cocoakeyboard.m b/src/video/cocoa/SDL_cocoakeyboard.m index 8dcabd150..69b25b0e9 100644 --- a/src/video/cocoa/SDL_cocoakeyboard.m +++ b/src/video/cocoa/SDL_cocoakeyboard.m @@ -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 @@ Cocoa_InitKeyboard(_THIS) 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);