mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-29 13:47:42 +00:00
Set the alert default button using the CPCarriageReturnCharacter key equivalent to match the recent Cappuccino change for default buttons.
This commit is contained in:
committed by
Ross Boucher
parent
12a49d0ee1
commit
4b86115d30
+3
-1
@@ -301,9 +301,11 @@ var CPAlertWarningImage,
|
||||
[[_alertPanel contentView] addSubview:button];
|
||||
|
||||
if (_buttonCount == 0)
|
||||
[_alertPanel setDefaultButton:button];
|
||||
[button setKeyEquivalent:CPCarriageReturnCharacter];
|
||||
else if ([title lowercaseString] === "cancel")
|
||||
[button setKeyEquivalent:CPEscapeFunctionKey];
|
||||
else
|
||||
[button setKeyEquivalent:nil];
|
||||
|
||||
_buttonCount++;
|
||||
[_buttons addObject:button];
|
||||
|
||||
Reference in New Issue
Block a user