comparison src/video/quartz/SDL_QuartzEvents.m @ 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 6930cd5ab933
children ab38230546a5
comparison
equal deleted inserted replaced
4092:2b32a416d202 4093:7ea10b80eda3
268 */ 268 */
269 if (SDL_TranslateUNICODE && state == SDL_PRESSED) { 269 if (SDL_TranslateUNICODE && state == SDL_PRESSED) {
270 [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]]; 270 [field_edit interpretKeyEvents:[NSArray arrayWithObject:event]];
271 chars = [ event characters ]; 271 chars = [ event characters ];
272 numChars = [ chars length ]; 272 numChars = [ chars length ];
273 if (numChars > 0)
274 [field_edit setString:@""];
273 } else { 275 } else {
274 numChars = 0; 276 numChars = 0;
275 } 277 }
276 278
277 if (numChars == 0) { 279 if (numChars == 0) {