diff options
author | Bibiko <bibiko@eva.mpg.de> | 2009-08-11 14:35:35 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2009-08-11 14:35:35 +0000 |
commit | cf4adf859ac3b5944801040b8b5035479874e103 (patch) | |
tree | 323010241f403ed9b15f9e49b8f935179b72727e /Source/TableDocument.m | |
parent | 07082135254e88cbfd421aa41f12522582b10d89 (diff) | |
download | sequelpro-cf4adf859ac3b5944801040b8b5035479874e103.tar.gz sequelpro-cf4adf859ac3b5944801040b8b5035479874e103.tar.bz2 sequelpro-cf4adf859ac3b5944801040b8b5035479874e103.zip |
• after connecting to a server set focus to table list filter field if visible otherwise set focus to Table List view for selecting a table quickly
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 96554663..02212647 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -213,6 +213,13 @@ queryEditorInitString = nil; } + // Set focus to table list filter field if visible + // otherwise set focus to Table List view + if ( [[tablesListInstance tables] count] > 20 ) + [tableWindow makeFirstResponder:listFilterField]; + else + [tableWindow makeFirstResponder:[tablesListInstance valueForKeyPath:@"tablesListView"]]; + } /** |