Fixed bugs #471 and #480

--HG--
branch : SDL-1.2
This commit is contained in:
Sam Lantinga
2007-08-21 06:52:33 +00:00
parent d5084855e5
commit 9030ffc5d4

View File

@@ -270,6 +270,8 @@ static void QZ_DoKey (_THIS, int state, NSEvent *event) {
[field_edit interpretKeyEvents:[NSArray arrayWithObject:event]];
chars = [ event characters ];
numChars = [ chars length ];
if (numChars > 0)
[field_edit setString:@""];
} else {
numChars = 0;
}