mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 22:42:18 +00:00
Fixes search field (Issue #65)
This commit is contained in:
@@ -342,6 +342,10 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
#pragma mark Filtering
|
||||
|
||||
- (void)showFilter:(id)sender {
|
||||
if([self _showsFilterBar]) {
|
||||
[self.filterSearchField selectText:self];
|
||||
}
|
||||
|
||||
[self _showFilterBarAnimated];
|
||||
}
|
||||
|
||||
@@ -410,6 +414,17 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
self.filter = [self.filterSearchField stringValue];
|
||||
}
|
||||
|
||||
- (BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector
|
||||
{
|
||||
if (commandSelector == @selector(insertNewline:))
|
||||
{
|
||||
self.filter = [self.filterSearchField stringValue];
|
||||
}
|
||||
|
||||
return NO;
|
||||
}
|
||||
|
||||
|
||||
- (void)_setupFilterBar {
|
||||
if(!self.filterBar) {
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user