# HG changeset patch # User Sam Lantinga # Date 1198963886 0 # Node ID 9d90d7765fa75f35493520bb74097e2894be20df # Parent cb7b118b400aac1dd36d10eeee45d979d9d80ae0 Guillaume Borios fixed bug #508 When unicode translation is ON, pressing the escape key raise an NSBeep() because the NSTextView interprets the key as a special command (in that case impossible to interpret)... The NSTextView instance should replaced by something subclassed so that doCommandBySelector: does nothing. Example code : @interface SDLTranslatorResponder : NSTextView { } - (void) doCommandBySelector:(SEL)myselector; @end @implementation SDLTranslatorResponder - (void) doCommandBySelector:(SEL) myselector {} @end diff -r cb7b118b400a -r 9d90d7765fa7 docs.html --- a/docs.html Sat Dec 29 20:28:21 2007 +0000 +++ b/docs.html Sat Dec 29 21:31:26 2007 +0000 @@ -80,6 +80,9 @@ Fixed high frequency crash involving text input.

+ Fixed beeping when the escape key is pressed and UNICODE translation is enabled. +

+

Improved trackpad scrolling support.

diff -r cb7b118b400a -r 9d90d7765fa7 src/video/quartz/SDL_QuartzVideo.m --- a/src/video/quartz/SDL_QuartzVideo.m Sat Dec 29 20:28:21 2007 +0000 +++ b/src/video/quartz/SDL_QuartzVideo.m Sat Dec 29 21:31:26 2007 +0000 @@ -42,6 +42,16 @@ } @end +@interface SDLTranslatorResponder : NSTextView +{ +} +- (void) doCommandBySelector:(SEL)myselector; +@end + +@implementation SDLTranslatorResponder +- (void) doCommandBySelector:(SEL) myselector {} +@end + /* Bootstrap functions */ static int QZ_Available (); @@ -203,7 +213,7 @@ cursor_should_be_visible = YES; cursor_visible = YES; current_mods = 0; - field_edit = [[NSTextView alloc] initWithFrame:r]; + field_edit = [[SDLTranslatorResponder alloc] initWithFrame:r]; if ( Gestalt(gestaltSystemVersion, &system_version) != noErr ) system_version = 0;