diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-02-20 21:08:59 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-02-20 21:08:59 +0000 |
commit | 829e22e75999e9390dd6f8c0310d5171829191f0 (patch) | |
tree | 7b5a62b1822fb091c15da26496fc1d4d27fc9eb0 /Source/TableDocument.m | |
parent | e08596ccfd20d826ce21256e6b41617814077e97 (diff) | |
download | sequelpro-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/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 3 |
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]; + } /** |