From ac20f58238c674028c12eb8db7942bb11fc6659b Mon Sep 17 00:00:00 2001 From: avenjamin Date: Mon, 9 Nov 2009 23:29:48 +0000 Subject: Set keyboard shortcut for Delete button in "Delete Rows" alert to command D. --- Source/TableContent.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Source/TableContent.m') diff --git a/Source/TableContent.m b/Source/TableContent.m index da61414c..6d1c4a54 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1123,7 +1123,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"]; NSString *contextInfo = @"removerow"; -- cgit v1.2.3