Adium

Changeset 23979

Show
Ignore:
Timestamp:
06/14/2008 03:18:46 PM (6 months ago)
Author:
evands
Message:

cmd-f refocuses the contact list search field if it is already visible. Closes #10031

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Source/AIStandardListWindowController.m

    r23627 r23979  
    817817#pragma mark Filtering 
    818818/*! 
    819  * @brief Toggles the find bar on and off 
     819 * @brief Toggles the find bar on, or brings it into focus if it is already visible 
    820820 */ 
    821821- (void)toggleFindPanel:(id)sender; 
    822822{ 
    823823        if (filterBarIsVisible) { 
    824                 [self hideFilterBarWithAnimation:YES]; 
     824                [[self window] makeFirstResponder:searchField];  
     825 
    825826        } else if ([contactListView numberOfRows] > 0) { 
    826827                [self showFilterBarWithAnimation:YES]; 
     828 
     829        } else { 
     830                NSBeep(); 
    827831        } 
    828832}