src/video/uikit/SDL_uikitviewcontroller.m
changeset 11497 65698434e30d
parent 11327 770196e01af1
child 11782 98ea6e4c0d68
equal deleted inserted replaced
11496:3d1698bc2747 11497:65698434e30d
   279 }
   279 }
   280 
   280 
   281 - (void)keyboardWillShow:(NSNotification *)notification
   281 - (void)keyboardWillShow:(NSNotification *)notification
   282 {
   282 {
   283 #if !TARGET_OS_TV
   283 #if !TARGET_OS_TV
   284     CGRect kbrect = [[notification userInfo][UIKeyboardFrameBeginUserInfoKey] CGRectValue];
   284     CGRect kbrect = [[notification userInfo][UIKeyboardFrameEndUserInfoKey] CGRectValue];
   285 
   285 
   286     /* The keyboard rect is in the coordinate space of the screen/window, but we
   286     /* The keyboard rect is in the coordinate space of the screen/window, but we
   287      * want its height in the coordinate space of the view. */
   287      * want its height in the coordinate space of the view. */
   288     kbrect = [self.view convertRect:kbrect fromView:nil];
   288     kbrect = [self.view convertRect:kbrect fromView:nil];
   289 
   289