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 2289f629d566ec6b
parent 2288 e9bcf004c324
child 2290 323a5af2924b
Merged fix for bug #508 from SDL 1.2 revision 3495
src/video/cocoa/SDL_cocoakeyboard.m
     1.1 --- a/src/video/cocoa/SDL_cocoakeyboard.m	Sat Dec 29 20:13:23 2007 +0000
     1.2 +++ b/src/video/cocoa/SDL_cocoakeyboard.m	Sat Dec 29 21:36:17 2007 +0000
     1.3 @@ -54,6 +54,16 @@
     1.4      #define NX_DEVICERCTLKEYMASK    0x00002000
     1.5  #endif
     1.6  
     1.7 +@interface SDLTranslatorResponder : NSTextView
     1.8 +{
     1.9 +}
    1.10 +- (void) doCommandBySelector:(SEL)myselector;
    1.11 +@end
    1.12 +
    1.13 +@implementation SDLTranslatorResponder
    1.14 +- (void) doCommandBySelector:(SEL) myselector {}
    1.15 +@end
    1.16 +
    1.17  /* This is the original behavior, before support was added for 
    1.18   * differentiating between left and right versions of the keys.
    1.19   */
    1.20 @@ -330,7 +340,7 @@
    1.21      NSAutoreleasePool *pool;
    1.22  
    1.23      pool = [[NSAutoreleasePool alloc] init];
    1.24 -    data->fieldEdit = [[NSTextView alloc] initWithFrame:NSMakeRect(0.0, 0.0, 0.0, 0.0)];
    1.25 +    data->fieldEdit = [[SDLTranslatorResponder alloc] initWithFrame:NSMakeRect(0.0, 0.0, 0.0, 0.0)];
    1.26      [pool release];
    1.27      
    1.28      SDL_zero(keyboard);