diff options
author | Bibiko <bibiko@eva.mpg.de> | 2010-03-09 09:39:34 +0000 |
---|---|---|
committer | Bibiko <bibiko@eva.mpg.de> | 2010-03-09 09:39:34 +0000 |
commit | a896123760846a4e38c5061f335056ca8658d013 (patch) | |
tree | 57dcbde9cb2c8ebf76601fd8e7124d2ab21390f6 /Source/TableDocument.m | |
parent | aa0a178df3316777c001c59e03c534cfa537b365 (diff) | |
download | sequelpro-a896123760846a4e38c5061f335056ca8658d013.tar.gz sequelpro-a896123760846a4e38c5061f335056ca8658d013.tar.bz2 sequelpro-a896123760846a4e38c5061f335056ca8658d013.zip |
• improved tooltip behaviour of SPNarrowDownCompletion's tableView
• added "Filter Tables…" ^⌥⌘F" to main menu > Table which sets the focus to TablesList's search field if visible
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 13 |
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]; } |