aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableContent.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-11-05 01:05:15 +0000
committerstuconnolly <stuart02@gmail.com>2009-11-05 01:05:15 +0000
commite9dffcef54c24b92eb3cbace43e16cc2710554a4 (patch)
tree2374762449f5900748177fd2dceb38a89265019a /Source/TableContent.m
parentc33a709a935e65e0c54b0c629a19ef0e29a04ed5 (diff)
downloadsequelpro-e9dffcef54c24b92eb3cbace43e16cc2710554a4.tar.gz
sequelpro-e9dffcef54c24b92eb3cbace43e16cc2710554a4.tar.bz2
sequelpro-e9dffcef54c24b92eb3cbace43e16cc2710554a4.zip
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.
Diffstat (limited to 'Source/TableContent.m')
-rw-r--r--Source/TableContent.m6
1 files changed, 6 insertions, 0 deletions
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) {