From dcdcd8e41a7d45c81881dfc2e8b1e257eb15ac90 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Mon, 31 Dec 2012 14:53:04 +0000 Subject: [PATCH] Fixed: CPPanel could not always become the key window. Without this fix, `CPPanel` followed the same rules as `CPWindow` with regards to becoming the key window. But `CPPanel` is supposed to always be willing to become the key window, as stated in its documentation. This change makes `CPPanel` always return `YES` for `canBecomeKeyWindow`. --- AppKit/CPPanel.j | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/AppKit/CPPanel.j b/AppKit/CPPanel.j index 08ae3e769..b9dbe2ac6 100644 --- a/AppKit/CPPanel.j +++ b/AppKit/CPPanel.j @@ -114,4 +114,9 @@ CPDocModalWindowMask = 1 << 6; return NO; } +- (BOOL)canBecomeKeyWindow +{ + return YES; +} + @end