From cf4adf859ac3b5944801040b8b5035479874e103 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Tue, 11 Aug 2009 14:35:35 +0000 Subject: =?UTF-8?q?=E2=80=A2=20after=20connecting=20to=20a=20server=20set?= =?UTF-8?q?=20focus=20to=20table=20list=20filter=20field=20if=20visible=20?= =?UTF-8?q?otherwise=20set=20focus=20to=20Table=20List=20view=20for=20sele?= =?UTF-8?q?cting=20a=20table=20quickly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TableDocument.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source') 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"]]; + } /** -- cgit v1.2.3