Fixed bugs #471 and #480 SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Tue, 21 Aug 2007 06:52:33 +0000
branchSDL-1.2
changeset 40937ea10b80eda3
parent 4092 2b32a416d202
child 4094 ca992789c798
Fixed bugs #471 and #480
src/video/quartz/SDL_QuartzEvents.m
     1.1 --- a/src/video/quartz/SDL_QuartzEvents.m	Mon Aug 06 18:36:46 2007 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzEvents.m	Tue Aug 21 06:52:33 2007 +0000
     1.3 @@ -270,6 +270,8 @@
     1.4          [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]];
     1.5          chars = [ event characters ];
     1.6          numChars = [ chars length ];
     1.7 +        if (numChars > 0)
     1.8 +            [field_edit setString:@""];
     1.9      } else {
    1.10          numChars = 0;
    1.11      }