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 --HG-- branch : SDL-1.2 extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402683
This commit is contained in:
parent
c4370afc5f
commit
46e4acae50
2 changed files with 14 additions and 1 deletions
|
@ -79,6 +79,9 @@ SDL 1.2.13 is a minor bug fix release.
|
||||||
<P>
|
<P>
|
||||||
Fixed high frequency crash involving text input.
|
Fixed high frequency crash involving text input.
|
||||||
</P>
|
</P>
|
||||||
|
<P>
|
||||||
|
Fixed beeping when the escape key is pressed and UNICODE translation is enabled.
|
||||||
|
</P>
|
||||||
<P>
|
<P>
|
||||||
Improved trackpad scrolling support.
|
Improved trackpad scrolling support.
|
||||||
</P>
|
</P>
|
||||||
|
|
|
@ -42,6 +42,16 @@
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
|
@interface SDLTranslatorResponder : NSTextView
|
||||||
|
{
|
||||||
|
}
|
||||||
|
- (void) doCommandBySelector:(SEL)myselector;
|
||||||
|
@end
|
||||||
|
|
||||||
|
@implementation SDLTranslatorResponder
|
||||||
|
- (void) doCommandBySelector:(SEL) myselector {}
|
||||||
|
@end
|
||||||
|
|
||||||
|
|
||||||
/* Bootstrap functions */
|
/* Bootstrap functions */
|
||||||
static int QZ_Available ();
|
static int QZ_Available ();
|
||||||
|
@ -203,7 +213,7 @@ static int QZ_VideoInit (_THIS, SDL_PixelFormat *video_format) {
|
||||||
cursor_should_be_visible = YES;
|
cursor_should_be_visible = YES;
|
||||||
cursor_visible = YES;
|
cursor_visible = YES;
|
||||||
current_mods = 0;
|
current_mods = 0;
|
||||||
field_edit = [[NSTextView alloc] initWithFrame:r];
|
field_edit = [[SDLTranslatorResponder alloc] initWithFrame:r];
|
||||||
|
|
||||||
if ( Gestalt(gestaltSystemVersion, &system_version) != noErr )
|
if ( Gestalt(gestaltSystemVersion, &system_version) != noErr )
|
||||||
system_version = 0;
|
system_version = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue