aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m13
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index e72f0b86..8e7ba817 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -2340,6 +2340,14 @@
[tableContentInstance performSelector:@selector(makeContentFilterHaveFocus) withObject:nil afterDelay:0.1];
}
+/**
+ * Makes the tables list filter field the first responder.
+ */
+- (IBAction)focusOnTableListFilter:(id)sender
+{
+ [tablesListInstance performSelector:@selector(makeTableListFilterHaveFocus) withObject:nil afterDelay:0.1];
+}
+
#pragma mark -
#pragma mark Other Methods
@@ -3187,6 +3195,11 @@
return ([self table] != nil && [[self table] isNotEqualTo:@""]);
}
+ // Focus on table list filter
+ if ([menuItem action] == @selector(focusOnTableListFilter:)) {
+ return ([[tablesListInstance valueForKeyPath:@"tables"] count] > 20);
+ }
+
return [super validateMenuItem:menuItem];
}