comparison src/video/uikit/SDL_uikitview.m @ 5137:c63b901d97ab

Fixed bug #1025 (iphone keyboard doesn't send 'return' and 'backspace' events) Vittorio Giovara 2011-02-01 02:25:48 PST i have attached an updated patch that fixes this behaviour
author Sam Lantinga <slouken@libsdl.org>
date Tue, 01 Feb 2011 09:04:43 -0800
parents 5f09cb749d75
children 572a73d71b5f
comparison
equal deleted inserted replaced
5136:b915b3181cc2 5137:c63b901d97ab
296 return NO; /* don't allow the edit! (keep placeholder text there) */ 296 return NO; /* don't allow the edit! (keep placeholder text there) */
297 } 297 }
298 298
299 /* Terminates the editing session */ 299 /* Terminates the editing session */
300 - (BOOL)textFieldShouldReturn:(UITextField*)_textField { 300 - (BOOL)textFieldShouldReturn:(UITextField*)_textField {
301 SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_RETURN);
301 [self hideKeyboard]; 302 [self hideKeyboard];
302 return YES; 303 return YES;
303 } 304 }
304 305
305 #endif 306 #endif