mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-14 20:44:29 +00:00
Fixed: CPTextField should not blur when resigning from a window which are not keyWindow
This commit is contained in:
1 parent
6efe563a69
commit
136138daab
1 file changed
+2
-1
@@ -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])
|
||||
|
||||
Reference in new issue
Block a user