aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableTriggers.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2012-06-15 11:44:59 +0000
committerstuconnolly <stuart02@gmail.com>2012-06-15 11:44:59 +0000
commita2e45fab9cd07ffd95d24e96a33a922bb70f5c2f (patch)
tree1f77f00810dd5e819425a22d51afc71dd5eaed75 /Source/SPTableTriggers.m
parent343dc13be9aadb459444b648916e859ec5b18b9b (diff)
downloadsequelpro-a2e45fab9cd07ffd95d24e96a33a922bb70f5c2f.tar.gz
sequelpro-a2e45fab9cd07ffd95d24e96a33a922bb70f5c2f.tar.bz2
sequelpro-a2e45fab9cd07ffd95d24e96a33a922bb70f5c2f.zip
Make the trigger name field the initial first responder.
Diffstat (limited to 'Source/SPTableTriggers.m')
-rw-r--r--Source/SPTableTriggers.m4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/SPTableTriggers.m b/Source/SPTableTriggers.m
index ad412061..21417bb8 100644
--- a/Source/SPTableTriggers.m
+++ b/Source/SPTableTriggers.m
@@ -84,6 +84,8 @@ static const NSString *SPTriggerSQLMode = @"TriggerSQLMode";
// Set the strutcture and index view's font
BOOL useMonospacedFont = [[NSUserDefaults standardUserDefaults] boolForKey:SPUseMonospacedFonts];
+ [addTriggerPanel setInitialFirstResponder:triggerNameTextField];
+
for (NSTableColumn *column in [triggersTableView tableColumns])
{
[[column dataCell] setFont:(useMonospacedFont) ? [NSFont fontWithName:SPDefaultMonospacedFontName size:[NSFont smallSystemFontSize]] : [NSFont systemFontOfSize:[NSFont smallSystemFontSize]]];
@@ -270,7 +272,7 @@ static const NSString *SPTriggerSQLMode = @"TriggerSQLMode";
{
// Check whether table editing is permitted (necessary as some actions - eg table double-click - bypass validation)
if ([tableDocumentInstance isWorking] || [tablesListInstance tableType] != SPTableTypeTable) return;
-
+
[NSApp beginSheet:addTriggerPanel
modalForWindow:[tableDocumentInstance parentWindow]
modalDelegate:self