From 60313355c2e0297d0023ce2daecffcc57f547646 Mon Sep 17 00:00:00 2001 From: Aparajita Fishman Date: Sat, 24 Jul 2010 09:44:57 -0400 Subject: [PATCH] -hitTest was always returning self, which did not allow any other views to receive a mouse down --- AppKit/CPSearchField.j | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AppKit/CPSearchField.j b/AppKit/CPSearchField.j index e64a7e46b..f32da7d9f 100644 --- a/AppKit/CPSearchField.j +++ b/AppKit/CPSearchField.j @@ -470,7 +470,11 @@ var RECENT_SEARCH_PREFIX = @" "; - (CPView)hitTest:(CGPoint)aPoint { - return self; + // Make sure a hit anywhere within the search field returns the search field itself + if (_CGRectContainsPoint([self frame], aPoint)) + return self; + else + return nil; } - (BOOL)resignFirstResponder