-hitTest was always returning self, which did not allow any other views to receive a mouse down

This commit is contained in:
Aparajita Fishman
2010-07-24 09:44:57 -04:00
parent 673f12164f
commit 60313355c2
+5 -1
View File
@@ -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