diff --git a/ios/Capacitor/Capacitor/Plugins/Keyboard.m b/ios/Capacitor/Capacitor/Plugins/Keyboard.m index 933e04191c..dd323851ca 100644 --- a/ios/Capacitor/Capacitor/Plugins/Keyboard.m +++ b/ios/Capacitor/Capacitor/Plugins/Keyboard.m @@ -116,6 +116,7 @@ - (void)onKeyboardWillHide:(NSNotification *)notification [self.bridge triggerWindowJSEventWithEventName:@"keyboardWillHide"]; [self notifyListeners:@"keyboardWillHide" data:nil]; }]; + [[NSRunLoop currentRunLoop] addTimer:hideTimer forMode:NSRunLoopCommonModes]; } - (void)onKeyboardWillShow:(NSNotification *)notification @@ -171,7 +172,7 @@ - (void)setKeyboardHeight:(int)height delay:(NSTimeInterval)delay if (delay == 0) { [self _updateFrame]; } else { - [weakSelf performSelector:action withObject:nil afterDelay:delay]; + [weakSelf performSelector:action withObject:nil afterDelay:delay inModes:@[NSRunLoopCommonModes]]; } }