From 2df13b7ffc12ce17bb589ba36bb097f9811ca420 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Sat, 19 Oct 2013 00:40:19 -0700 Subject: [PATCH] Fixed: CPComboBox don't close when clicking on the scroll Previously CPComboBox don't close when clicking on the scroll, now it does Fixed #1991 --- AppKit/_CPPopUpList.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/_CPPopUpList.j b/AppKit/_CPPopUpList.j index dc8a74227..655f297c0 100644 --- a/AppKit/_CPPopUpList.j +++ b/AppKit/_CPPopUpList.j @@ -887,7 +887,7 @@ var _CPPopUpListDataSourceKey = @"_CPPopUpListDataSourceKey", if (mouseWindow != self && !CGRectContainsPoint(rect, point)) [[self delegate] close]; - else if ([mouseWindow firstResponder] == [[self delegate] dataSource]) + else [self _trapNextMouseDown]; }