From 812cd463dba18dcd0d44c439afe79fc1f65ea5a9 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Fri, 5 Apr 2013 11:28:41 -0700 Subject: [PATCH] Fixed: CPDatePicker works with action and target Previously the CPDatePicker didn't work with the action and target. Now each time the dateValue changed, the given action is sent to the target. This commit fix also a bug with moving with tab and the arrows. Before, the left arrow worked liked a tab when the firstElementTextField was selected in a textual CPDatePicker. Test app in Tests/Manual/CPDatePicker. --- AppKit/CPDatePicker/_CPDatePickerTextField.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPDatePicker/_CPDatePickerTextField.j b/AppKit/CPDatePicker/_CPDatePickerTextField.j index c56da3b38..6681631af 100644 --- a/AppKit/CPDatePicker/_CPDatePickerTextField.j +++ b/AppKit/CPDatePicker/_CPDatePickerTextField.j @@ -710,7 +710,7 @@ var CPZeroKeyCode = 48, CGContextAddLineToPoint(context, [self bounds].size.width + bezelInset.left - borderWidth, borderWidth); CGContextAddLineToPoint(context, [self bounds].size.width + bezelInset.left - borderWidth, [self bounds].size.height - borderWidth); CGContextAddLineToPoint(context, borderWidth - bezelInset.left, [self bounds].size.height - borderWidth); - CGContextAddLineToPoint(context, borderWidth-bezelInset.left, borderWidth); + CGContextAddLineToPoint(context, borderWidth - bezelInset.left, borderWidth); CGContextStrokePath(context); CGContextClosePath(context);