Navigation Menu

Skip to content

Commit

Permalink
Fixed iOS keyboard positioning, based on the final position rather th…
Browse files Browse the repository at this point in the history
…an the initial one
  • Loading branch information
slouken committed Sep 14, 2017
1 parent 7617648 commit cfe72c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/uikit/SDL_uikitviewcontroller.m
Expand Up @@ -281,7 +281,7 @@ - (void)hideKeyboard
- (void)keyboardWillShow:(NSNotification *)notification
{
#if !TARGET_OS_TV
CGRect kbrect = [[notification userInfo][UIKeyboardFrameBeginUserInfoKey] CGRectValue];
CGRect kbrect = [[notification userInfo][UIKeyboardFrameEndUserInfoKey] CGRectValue];

/* The keyboard rect is in the coordinate space of the screen/window, but we
* want its height in the coordinate space of the view. */
Expand Down

0 comments on commit cfe72c7

Please sign in to comment.