We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec3ef6c commit 88e5fa0Copy full SHA for 88e5fa0
cocos2d-ui/Platform/iOS/CCPlatformTextFieldIOS.m
@@ -177,6 +177,17 @@ - (void)keyboardWasShown:(NSNotification*)notification
177
- (void) keyboardWillBeHidden:(NSNotification*) notification
178
{
179
_keyboardIsShown = NO;
180
+
181
+ BOOL focusOnTextField = _textField.isEditing;
182
183
+#if __CC_PLATFORM_ANDROID
184
+ focusOnTextField = _textFieldIsEditing;
185
+#endif
186
187
+ if (focusOnTextField)
188
+ {
189
+ [self endFocusingOnTextField];
190
+ }
191
}
192
193
0 commit comments