src/video/uikit/SDL_uikitviewcontroller.m
changeset 11782 98ea6e4c0d68
parent 11497 65698434e30d
child 11811 5d94cb6b24d3
equal deleted inserted replaced
11781:c2f3e4187c9d 11782:98ea6e4c0d68
   385 /* Terminates the editing session */
   385 /* Terminates the editing session */
   386 - (BOOL)textFieldShouldReturn:(UITextField*)_textField
   386 - (BOOL)textFieldShouldReturn:(UITextField*)_textField
   387 {
   387 {
   388     SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_RETURN);
   388     SDL_SendKeyboardKey(SDL_PRESSED, SDL_SCANCODE_RETURN);
   389     SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_RETURN);
   389     SDL_SendKeyboardKey(SDL_RELEASED, SDL_SCANCODE_RETURN);
   390     SDL_StopTextInput();
   390     if (SDL_GetHintBoolean(SDL_HINT_RETURN_KEY_HIDES_IME, SDL_FALSE)) {
       
   391          SDL_StopTextInput();
       
   392     }
   391     return YES;
   393     return YES;
   392 }
   394 }
   393 
   395 
   394 #endif
   396 #endif
   395 
   397