From 8ec1325aff13f296d7686788a3d645218897d222 Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Wed, 12 Dec 2012 18:17:20 +0000 Subject: [PATCH] Fixed: CPPopovers could not become key windows in recent versions. This prevented text fields and token fields from accepting input when placed in a pop over. This fix allows the underlying popover window to become the key window. --- AppKit/_CPAttachedWindow.j | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AppKit/_CPAttachedWindow.j b/AppKit/_CPAttachedWindow.j index 2ac249dfa..610cdc78b 100644 --- a/AppKit/_CPAttachedWindow.j +++ b/AppKit/_CPAttachedWindow.j @@ -388,6 +388,14 @@ var _CPAttachedWindow_attachedWindowShouldClose_ = 1 << 0, #pragma mark - #pragma mark Overrides +/*! + Attached windows, such as pop overs, can usually become the key window. +*/ +- (BOOL)canBecomeKeyWindow +{ + return YES; +} + /*! Called when the window is losing focus. */