mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-20 01:09:39 +00:00
committed by
Michael Starke
parent
6897f9e51c
commit
631741d30b
@@ -244,6 +244,12 @@ NSString *const MPToolbarItemAutotype = @"TOOLBAR_AUTOTYPE";
|
||||
[[NSApp targetForAction:@selector(focusEntries:) to:nil from:self] focusEntries:self];
|
||||
});
|
||||
}
|
||||
if(commandSelector == @selector(cancel:) && control == self.searchField) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
NSSearchFieldCell *cell = self.searchField.cell;
|
||||
[[NSApp targetForAction:cell.cancelButtonCell.action to:nil from:self] exitSearch:nil];
|
||||
});
|
||||
}
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user