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