mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 15:12:21 +00:00
Simple approach to fix Issue #137. Tab navigates to the entry view after the "done" button
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="MPContextBarViewController">
|
||||
<connections>
|
||||
<outlet property="emptyTrashButton" destination="szx-Hx-OrV" id="i1Y-qB-TW3"/>
|
||||
<outlet property="exitHistoryButton" destination="pqx-su-vAh" id="JmV-vC-F48"/>
|
||||
<outlet property="filterDoneButton" destination="61" id="o8k-20-QUA"/>
|
||||
<outlet property="filterLabelTextField" destination="6" id="60"/>
|
||||
<outlet property="filterPasswordButton" destination="96" id="101"/>
|
||||
@@ -16,6 +17,7 @@
|
||||
<outlet property="filterURLButton" destination="40" id="59"/>
|
||||
<outlet property="filterUsernameButton" destination="35" id="58"/>
|
||||
<outlet property="historyBar" destination="S8L-rB-h0h" id="6yZ-El-fVs"/>
|
||||
<outlet property="historyLabel" destination="gGR-f0-dcr" id="slx-9D-8k8"/>
|
||||
<outlet property="trashBar" destination="DXf-SC-gVG" id="3aZ-Xc-VDk"/>
|
||||
<outlet property="view" destination="8MB-fC-M2Q" id="wYX-Cc-yoV"/>
|
||||
</connections>
|
||||
|
||||
@@ -32,6 +32,7 @@ typedef NS_OPTIONS(NSUInteger, MPFilterModeType) {
|
||||
@property (nonatomic, assign) MPFilterModeType filterMode;
|
||||
@property (nonatomic, readonly) BOOL hasFilter;
|
||||
@property (nonatomic, weak) id<MPContextBarDelegate> delegate;
|
||||
@property (weak) NSView *nextKeyView;
|
||||
|
||||
- (NSString *)filterString;
|
||||
- (NSArray *)filterPredicates;
|
||||
|
||||
@@ -36,6 +36,8 @@ typedef NS_ENUM(NSUInteger, MPContextTab) {
|
||||
@property (weak) IBOutlet NSSearchField *filterSearchField;
|
||||
/* History */
|
||||
@property (weak) IBOutlet HNHGradientView *historyBar;
|
||||
@property (weak) IBOutlet NSTextField *historyLabel;
|
||||
@property (weak) IBOutlet NSButton *exitHistoryButton;
|
||||
/* Trash*/
|
||||
@property (weak) IBOutlet HNHGradientView *trashBar;
|
||||
@property (weak) IBOutlet NSButton *emptyTrashButton;
|
||||
@@ -86,7 +88,12 @@ typedef NS_ENUM(NSUInteger, MPContextTab) {
|
||||
self.trashBar.activeGradient = [[NSGradient alloc] initWithColors:activeColors];
|
||||
self.trashBar.inactiveGradient = [[NSGradient alloc] initWithColors:inactiveColors];
|
||||
[[self view] bind:NSSelectedIndexBinding toObject:self withKeyPath:@"activeTab" options:nil];
|
||||
|
||||
|
||||
if(self.nextKeyView) {
|
||||
[self.exitHistoryButton setNextKeyView:self.nextKeyView];
|
||||
[self.emptyTrashButton setNextKeyView:self.nextKeyView];
|
||||
[self.filterDoneButton setNextKeyView:self.nextKeyView];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark Properties
|
||||
|
||||
@@ -96,7 +96,6 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
_dataSource.viewController = self;
|
||||
_menuDelegate = [[MPEntryContextMenuDelegate alloc] init];
|
||||
_contextBarViewController = [[MPContextBarViewController alloc] init];
|
||||
|
||||
}
|
||||
return self;
|
||||
}
|
||||
@@ -125,6 +124,7 @@ NSString *const _MPTAbleSecurCellView = @"PasswordCell";
|
||||
object:_entryTable];
|
||||
/* Filter bar notifications */
|
||||
self.contextBarViewController.delegate = self;
|
||||
self.contextBarViewController.nextKeyView = self.entryTable;
|
||||
[self _setupEntryMenu];
|
||||
|
||||
NSTableColumn *parentColumn = [self.entryTable tableColumns][0];
|
||||
|
||||
Reference in New Issue
Block a user