From 02c0253780c8a36569b271500a37591ab80e923d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 22 Jun 2014 11:08:33 -0700 Subject: [PATCH] Fixed bug 2560 - Crash on any input Alex Marshall On all of my OSX machines running 10.9 (I posted OS as Mac OS X (All) due to there not being a 10.9 selection), I get a crash on any input using SDL 1.2. I've had this issue in both HG 1.2 and final release 1.2 on the website. Today I got around to trying to fix it; commenting out the two uses of 'field_edit' in src/video/quartz/SQL_QuartzEvents.m fixes the crash and doesn't cause any side effects as far as I can tell. --- src/video/quartz/SDL_QuartzEvents.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/video/quartz/SDL_QuartzEvents.m b/src/video/quartz/SDL_QuartzEvents.m index 773eb010b..5498a6a14 100644 --- a/src/video/quartz/SDL_QuartzEvents.m +++ b/src/video/quartz/SDL_QuartzEvents.m @@ -345,11 +345,12 @@ static void QZ_DoKey (_THIS, int state, NSEvent *event) { the scancode/keysym. */ if (SDL_TranslateUNICODE && state == SDL_PRESSED) { - [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]]; +/* [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]]; */ chars = [ event characters ]; numChars = [ chars length ]; +/* if (numChars > 0) - [field_edit setString:@""]; + [field_edit setString:@""];*/ } else { numChars = 0; }