1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 01:03:01 +00:00

restore cmd-option-f to select the search filter field when the torrent table view is selected

This commit is contained in:
Mitchell Livingston 2011-02-20 04:34:46 +00:00
parent 7ba8bcb2b6
commit c1ac1d629f
3 changed files with 9 additions and 4 deletions

View file

@ -2978,12 +2978,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
}
}
#warning fix?
- (void) focusFilterField
{
/*[fWindow makeFirstResponder: fSearchFilterField];
if ([fFilterBar isHidden])
[self toggleFilterBar: self];*/
if (!fFilterBar)
[self toggleFilterBar: self];
[fFilterBar focusSearchField];
}
#warning change from id to QLPreviewPanel

View file

@ -56,6 +56,7 @@
- (void) setGroupFilter: (id) sender;
- (NSString *) searchString;
- (void) focusSearchField;
- (void) setCountAll: (NSUInteger) all active: (NSUInteger) active downloading: (NSUInteger) downloading
seeding: (NSUInteger) seeding paused: (NSUInteger) paused;

View file

@ -187,6 +187,11 @@
[[NSNotificationCenter defaultCenter] postNotificationName: @"ApplyFilter" object: nil];
}
- (void) focusSearchField
{
[[[self view] window] makeFirstResponder: fSearchField];
}
- (void) setSearchType: (id) sender
{
NSString * oldFilterType = [[NSUserDefaults standardUserDefaults] stringForKey: @"FilterSearchType"];