diff options
author | stuconnolly <stuart02@gmail.com> | 2012-06-15 11:44:59 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-06-15 11:44:59 +0000 |
commit | a2e45fab9cd07ffd95d24e96a33a922bb70f5c2f (patch) | |
tree | 1f77f00810dd5e819425a22d51afc71dd5eaed75 | |
parent | 343dc13be9aadb459444b648916e859ec5b18b9b (diff) | |
download | sequelpro-a2e45fab9cd07ffd95d24e96a33a922bb70f5c2f.tar.gz sequelpro-a2e45fab9cd07ffd95d24e96a33a922bb70f5c2f.tar.bz2 sequelpro-a2e45fab9cd07ffd95d24e96a33a922bb70f5c2f.zip |
Make the trigger name field the initial first responder.
-rw-r--r-- | Source/SPTableTriggers.m | 4 |
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 |