aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-02-20 21:08:59 +0000
committerBibiko <bibiko@eva.mpg.de>2010-02-20 21:08:59 +0000
commit829e22e75999e9390dd6f8c0310d5171829191f0 (patch)
tree7b5a62b1822fb091c15da26496fc1d4d27fc9eb0 /Source
parente08596ccfd20d826ce21256e6b41617814077e97 (diff)
downloadsequelpro-829e22e75999e9390dd6f8c0310d5171829191f0.tar.gz
sequelpro-829e22e75999e9390dd6f8c0310d5171829191f0.tar.bz2
sequelpro-829e22e75999e9390dd6f8c0310d5171829191f0.zip
• fixed keyboard behaviour of "Create Sytax Sheet"
- specified first responder to avoid pressing ↩ twice before closing sheet - ESC also closes that sheet - fixed tab behaviour for keyboard navigation
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index f8c0fe69..2d15e4e2 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1760,12 +1760,15 @@
[createTableSyntaxTextView insertText:([tablesListInstance tableType] == SP_TABLETYPE_VIEW) ? [tableSyntax createViewSyntaxPrettifier] : tableSyntax];
[createTableSyntaxTextView setEditable:NO];
+ [createTableSyntaxWindow makeFirstResponder:createTableSyntaxTextField];
+
// Show variables sheet
[NSApp beginSheet:createTableSyntaxWindow
modalForWindow:tableWindow
modalDelegate:self
didEndSelector:nil
contextInfo:nil];
+
}
/**