diff 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
line wrap: on
line diff
--- a/src/video/uikit/SDL_uikitview.m	Tue Feb 01 09:02:53 2011 -0800
+++ b/src/video/uikit/SDL_uikitview.m	Tue Feb 01 09:04:43 2011 -0800
@@ -298,6 +298,7 @@
 
 /* Terminates the editing session */
 - (BOOL)textFieldShouldReturn:(UITextField*)_textField {
+    SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_RETURN);
     [self hideKeyboard];
     return YES;
 }