From 404e21cfa7e9d20b7afeac10675b61fab621eeec Mon Sep 17 00:00:00 2001 From: avenjamin Date: Mon, 9 Nov 2009 23:59:05 +0000 Subject: Set keyboard shortcut for Delete button in alert dialogs to command D. Set keyboard shortcut for Truncate button in alert dialog to command T --- Source/TableDocument.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/TableDocument.m') diff --git a/Source/TableDocument.m b/Source/TableDocument.m index a8a71e8b..b0f11df2 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -1027,7 +1027,8 @@ NSArray *buttons = [alert buttons]; // Change the alert's cancel button to have the key equivalent of return - [[buttons objectAtIndex:0] setKeyEquivalent:@""]; + [[buttons objectAtIndex:0] setKeyEquivalent:@"d"]; + [[buttons objectAtIndex:0] setKeyEquivalentModifierMask:NSCommandKeyMask]; [[buttons objectAtIndex:1] setKeyEquivalent:@"\r"]; [alert setAlertStyle:NSCriticalAlertStyle]; -- cgit v1.2.3