Skip to content

Commit

Permalink
Fixed bug 3305 - Fixed TextInput status when the keyboard was dismiss…
Browse files Browse the repository at this point in the history
…ed with the dismiss key on the iPad

Diego

The keyboard on iPads has a dismiss button that hides the keyboard. When the keyboard was hidden using that button, instead of the return key, SDL was still reporting IsTextInputActive as true. This patch adds an extra SDL_StopTextInput when iOS reports the keyboard will hide.
  • Loading branch information
slouken committed Oct 1, 2016
1 parent c3e48e7 commit 765d8be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/video/uikit/SDL_uikitviewcontroller.m
Expand Up @@ -251,6 +251,7 @@ - (void)keyboardWillShow:(NSNotification *)notification

- (void)keyboardWillHide:(NSNotification *)notification
{
SDL_StopTextInput();
[self setKeyboardHeight:0];
}

Expand Down

0 comments on commit 765d8be

Please sign in to comment.