Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzEvents.m @ 4093:7ea10b80eda3 SDL-1.2
Fixed bugs #471 and #480
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 21 Aug 2007 06:52:33 +0000 |
parents | 6930cd5ab933 |
children | ab38230546a5 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzEvents.m Mon Aug 06 18:36:46 2007 +0000 +++ b/src/video/quartz/SDL_QuartzEvents.m Tue Aug 21 06:52:33 2007 +0000 @@ -270,6 +270,8 @@ [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]]; chars = [ event characters ]; numChars = [ chars length ]; + if (numChars > 0) + [field_edit setString:@""]; } else { numChars = 0; }