Fixed: notifications CPWindowDidResignKeyNotification and CPWindowDidBecomeKeyNotification were not registered for a firstresponder textField when ordered again a window

This commit is contained in:
Alexandre Wilhelm committed 2014-12-02 16:37:02 -08:00
1 parent c3ce0a61b6
commit 12ed70fec2
1 file changed
+1 -1
+1 -1
View File
@@ -882,7 +882,7 @@ CPTextFieldStatePlaceholder = CPThemeState("placeholder");
[super _addObservers];
if ([self window] === self)
if ([[self window] firstResponder] === self)
[self _setObserveWindowKeyNotifications:YES];
}