Skip to content

Commit 868364e

Browse files
committed
1 parent 1225ab0 commit 868364e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cocos2d-ui/Platform/iOS/CCPlatformTextFieldIOS.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,10 @@ - (void)keyboardWasShown:(NSNotification*)notification
177177
- (void) keyboardWillBeHidden:(NSNotification*) notification
178178
{
179179
_keyboardIsShown = NO;
180+
BOOL focusOnTextField = _textField.isEditing;
181+
182+
if (focusOnTextField)
183+
[self endFocusingOnTextField];
180184
}
181185

182186

0 commit comments

Comments
 (0)