mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 15:12:21 +00:00
Fixed #39 Overall search behavior ironed out.
Fixed #71 Added A simple entropy calculation for purely random generated passwords Added separate Views for Group and Entry Inspector Added "no Selection" view for Inpsector
This commit is contained in:
@@ -9,12 +9,26 @@
|
||||
#import "MPOutlineView.h"
|
||||
#import "MPNotifications.h"
|
||||
|
||||
@interface MPOutlineView () {
|
||||
BOOL _didBecomeFirstResponder;
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@implementation MPOutlineView
|
||||
|
||||
- (void)mouseDown:(NSEvent *)theEvent {
|
||||
[super mouseDown:theEvent];
|
||||
if(_didBecomeFirstResponder) {
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:MPDidActivateViewNotification
|
||||
object:self
|
||||
userInfo:nil];
|
||||
}
|
||||
_didBecomeFirstResponder = NO;
|
||||
}
|
||||
|
||||
- (BOOL)becomeFirstResponder {
|
||||
[[NSNotificationCenter defaultCenter] postNotificationName:MPDidBecomeFirstResonderNotification
|
||||
object:self
|
||||
userInfo:nil];
|
||||
_didBecomeFirstResponder = YES;
|
||||
return YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user