From fcd2b778ea1bcdf482f009ec36634d3f61ebc58e Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Thu, 23 Oct 2014 11:53:46 -0700 Subject: [PATCH] Fixed: CPWindow keeps a reference of its firstResponder when closing a window Previously, when closing a CPWindow, the window kept a reference of the firstResponder. This things raised an issue when opening a window again and asking the window to make the first responder to the same element as the one we had. Now when closing a window, the window will update its firstResponder to nil. --- AppKit/CPWindow/CPWindow.j | 1 + 1 file changed, 1 insertion(+) diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index 70fb8034e..f770fc642 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -981,6 +981,7 @@ CPTexturedBackgroundWindowMask [_platformWindow order:CPWindowOut window:self relativeTo:nil]; #endif + [self makeFirstResponder:nil]; [self _updateMainAndKeyWindows]; }