fix animation on iOS keyboard

This commit is contained in:
2018-03-24 19:56:12 +01:00
parent 0be5b177cf
commit 23b7788063
2 changed files with 3 additions and 3 deletions

View File

@@ -108,14 +108,14 @@ NSThread* lock_thread;
- (void)registerForKeyboardNotifications
{
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWasShown:)
selector:@selector(keyboardWillBeShown:)
name:UIKeyboardWillShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillBeHidden:)
name:UIKeyboardWillHideNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWillBeShown:)
selector:@selector(keyboardWasShown:)
name:UIKeyboardDidShowNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(keyboardWasHidden:)

View File

@@ -37,7 +37,7 @@ void App::hideKeyboard()
redraw = true;
#ifdef __IOS__
[ios_view resignFirstResponder];
[ios_view unregisterForKeyboardNotifications];
// [ios_view unregisterForKeyboardNotifications];
#elif __ANDROID__
displayKeyboard(and_app, false);
#endif