From c6779c7de40f38c8ff7f8d8ffa7c649164921556 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Thu, 25 Mar 2010 19:44:59 +0000 Subject: =?UTF-8?q?=E2=80=A2=20changed=20behaviour=20of=20^=E2=8C=A5?= =?UTF-8?q?=E2=8C=98F=20=20"Filter=20Table"=20or=20"Change=20Focus=20to=20?= =?UTF-8?q?Table=20List"=20-=20if=20>=2020=20tables=20are=20listed=20it=20?= =?UTF-8?q?sets=20the=20focus=20on=20the=20search=20field=20-=20if=20<=3D?= =?UTF-8?q?=2020=20it=20sets=20the=20focus=20on=20the=20table=20list,=20an?= =?UTF-8?q?d=20-=20if=20no=20selection=20-=20it=20selects=20the=20first=20?= =?UTF-8?q?table=20item=20-=20this=20fixes=20i597?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/TablesList.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Source/TablesList.m') diff --git a/Source/TablesList.m b/Source/TablesList.m index 76e653be..6ef3d315 100644 --- a/Source/TablesList.m +++ b/Source/TablesList.m @@ -1609,7 +1609,15 @@ */ - (void) makeTableListFilterHaveFocus { - [tableWindow makeFirstResponder:listFilterField]; + if([tables count] > 20) { + [tableWindow makeFirstResponder:listFilterField]; + } + else if([tables count] > 2) { + [tableWindow makeFirstResponder:tablesListView]; + if([tablesListView numberOfSelectedRows] < 1) + [tablesListView selectRowIndexes:[NSIndexSet indexSetWithIndex:1] byExtendingSelection:NO]; + + } } /** -- cgit v1.2.3