Commit ccf6e30b authored by Sam Lantinga's avatar Sam Lantinga

Fixed bugs #471 and #480

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402635
parent 66999cf6
...@@ -270,6 +270,8 @@ static void QZ_DoKey (_THIS, int state, NSEvent *event) { ...@@ -270,6 +270,8 @@ static void QZ_DoKey (_THIS, int state, NSEvent *event) {
[field_edit interpretKeyEvents:[NSArray arrayWithObject:event]]; [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]];
chars = [ event characters ]; chars = [ event characters ];
numChars = [ chars length ]; numChars = [ chars length ];
if (numChars > 0)
[field_edit setString:@""];
} else { } else {
numChars = 0; numChars = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment