Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged fix for bug #508 from SDL 1.2 revision 3495
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 29, 2007
1 parent f984440 commit b37d9c5
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/video/cocoa/SDL_cocoakeyboard.m
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit b37d9c5

Please sign in to comment.