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.
This commit is contained in:
Alexandre Wilhelm
2014-10-23 11:53:46 -07:00
parent 608480c1d2
commit fcd2b778ea
+1
View File
@@ -981,6 +981,7 @@ CPTexturedBackgroundWindowMask
[_platformWindow order:CPWindowOut window:self relativeTo:nil];
#endif
[self makeFirstResponder:nil];
[self _updateMainAndKeyWindows];
}