aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m7
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"]];
+
}
/**