mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-12-06 20:55:32 +00:00
Fixed: CPDatePicker takes key code CPReturnKeyCode all the time
Previously, the CPDatePicker took the key code CPReturnKeyCode all the time. It means, the key event wasn't redistributed to the other component, for example a defaultButton in a window. Now instead of returning YES, it returns [super performKeyEquivalent:anEvent]
This commit is contained in:
1 parent
b2557c38dd
commit
9174338140
1 file changed
+3
-2
@@ -338,10 +338,11 @@ var CPZeroKeyCode = 48,
|
||||
if ([anEvent keyCode] == CPReturnKeyCode)
|
||||
{
|
||||
[_currentTextField _endEditing];
|
||||
return YES;
|
||||
|
||||
return [super performKeyEquivalent:anEvent];
|
||||
}
|
||||
|
||||
return NO;
|
||||
return [super performKeyEquivalent:anEvent];
|
||||
}
|
||||
|
||||
/*! KeyDown event
|
||||
|
||||
Reference in new issue
Block a user