changeset 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 2b32a416d202
children ca992789c798
files src/video/quartz/SDL_QuartzEvents.m
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;
     }