mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
restore cmd-option-f to select the search filter field when the torrent table view is selected
This commit is contained in:
parent
7ba8bcb2b6
commit
c1ac1d629f
3 changed files with 9 additions and 4 deletions
|
@ -2978,12 +2978,11 @@ static void sleepCallback(void * controller, io_service_t y, natural_t messageTy
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning fix?
|
|
||||||
- (void) focusFilterField
|
- (void) focusFilterField
|
||||||
{
|
{
|
||||||
/*[fWindow makeFirstResponder: fSearchFilterField];
|
if (!fFilterBar)
|
||||||
if ([fFilterBar isHidden])
|
[self toggleFilterBar: self];
|
||||||
[self toggleFilterBar: self];*/
|
[fFilterBar focusSearchField];
|
||||||
}
|
}
|
||||||
|
|
||||||
#warning change from id to QLPreviewPanel
|
#warning change from id to QLPreviewPanel
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
- (void) setGroupFilter: (id) sender;
|
- (void) setGroupFilter: (id) sender;
|
||||||
|
|
||||||
- (NSString *) searchString;
|
- (NSString *) searchString;
|
||||||
|
- (void) focusSearchField;
|
||||||
|
|
||||||
- (void) setCountAll: (NSUInteger) all active: (NSUInteger) active downloading: (NSUInteger) downloading
|
- (void) setCountAll: (NSUInteger) all active: (NSUInteger) active downloading: (NSUInteger) downloading
|
||||||
seeding: (NSUInteger) seeding paused: (NSUInteger) paused;
|
seeding: (NSUInteger) seeding paused: (NSUInteger) paused;
|
||||||
|
|
|
@ -187,6 +187,11 @@
|
||||||
[[NSNotificationCenter defaultCenter] postNotificationName: @"ApplyFilter" object: nil];
|
[[NSNotificationCenter defaultCenter] postNotificationName: @"ApplyFilter" object: nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void) focusSearchField
|
||||||
|
{
|
||||||
|
[[[self view] window] makeFirstResponder: fSearchField];
|
||||||
|
}
|
||||||
|
|
||||||
- (void) setSearchType: (id) sender
|
- (void) setSearchType: (id) sender
|
||||||
{
|
{
|
||||||
NSString * oldFilterType = [[NSUserDefaults standardUserDefaults] stringForKey: @"FilterSearchType"];
|
NSString * oldFilterType = [[NSUserDefaults standardUserDefaults] stringForKey: @"FilterSearchType"];
|
||||||
|
|
Loading…
Reference in a new issue