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 4093 7ea10b80eda3
parent 4092 2b32a416d202
child 4094 ca992789c798
Fixed bugs #471 and #480
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;
     }