From e9dffcef54c24b92eb3cbace43e16cc2710554a4 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Thu, 5 Nov 2009 01:05:15 +0000 Subject: In the delete table row confirm dialog give the 'Cancel' button the key equivalent of return in order to be consistent with other data deletion dialogs. --- Source/TableContent.m | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Source/TableContent.m') diff --git a/Source/TableContent.m b/Source/TableContent.m index 6130c5c5..c0b70b55 100644 --- a/Source/TableContent.m +++ b/Source/TableContent.m @@ -1106,6 +1106,12 @@ [alert setAlertStyle:NSCriticalAlertStyle]; + NSArray *buttons = [alert buttons]; + + // Change the alert's cancel button to have the key equivalent of return + [[buttons objectAtIndex:0] setKeyEquivalent:@""]; + [[buttons objectAtIndex:1] setKeyEquivalent:@"\r"]; + NSString *contextInfo = @"removerow"; if (([tableContentView numberOfSelectedRows] == [tableContentView numberOfRows]) && !isFiltered && !isLimited) { -- cgit v1.2.3