# HG changeset patch # User Sam Lantinga # Date 1187679153 0 # Node ID 7ea10b80eda34bf0b7d641f4116e7b9045f560b4 # Parent 2b32a416d20246c94c75b23e7754cfaca045cacc Fixed bugs #471 and #480 diff -r 2b32a416d202 -r 7ea10b80eda3 src/video/quartz/SDL_QuartzEvents.m --- 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; }