Fixed: CPTextField should not blur when resigning from a window which are not keyWindow

This commit is contained in:
Alexandre Wilhelm
2015-04-10 10:55:48 -07:00
parent 6efe563a69
commit 136138daab
+2 -1
View File
@@ -792,7 +792,8 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
// When we are no longer the first responder we don't worry about the key status of our window anymore.
[self _setObserveWindowKeyNotifications:NO];
[self _resignFirstKeyResponder];
if ([[self window] isKeyWindow])
[self _resignFirstKeyResponder];
_isEditing = NO;
if ([self isEditable])