Need to send a key up, silly.
authorSam Lantinga <slouken@libsdl.org>
Mon, 07 Nov 2011 02:24:52 -0500
changeset 6054 effedf4d675c
parent 6053 4d7b69e575f9
child 6060 59d398ac031e
Need to send a key up, silly.
src/video/uikit/SDL_uikitview.m
--- a/src/video/uikit/SDL_uikitview.m	Mon Nov 07 02:25:01 2011 -0500
+++ b/src/video/uikit/SDL_uikitview.m	Mon Nov 07 02:24:52 2011 -0500
@@ -304,6 +304,7 @@
 - (BOOL)textFieldShouldReturn:(UITextField*)_textField
 {
     SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_RETURN);
+    SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_RETURN);
     [self hideKeyboard];
     return YES;
 }