From 136138daabef85b2fc71655df75f3087999e8a30 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Fri, 10 Apr 2015 10:55:48 -0700 Subject: [PATCH] Fixed: CPTextField should not blur when resigning from a window which are not keyWindow --- AppKit/CPTextField.j | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/AppKit/CPTextField.j b/AppKit/CPTextField.j index 0d8576a45..a3b8a7093 100644 --- a/AppKit/CPTextField.j +++ b/AppKit/CPTextField.j @@ -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])