Add/Remove window associations works via gui. KeePassKit updated to bubble auto type sequence for associations if none is set.

This commit is contained in:
michael starke
2014-03-04 20:26:10 +01:00
parent 0af0d08082
commit 08c7dfa650
4 changed files with 12 additions and 3 deletions

View File

@@ -159,11 +159,14 @@ typedef NS_ENUM(NSUInteger, MPEntryTab) {
}
- (void)addWindowAssociation:(id)sender {
KPKWindowAssociation *associtation = [[KPKWindowAssociation alloc] initWithWindow:NSLocalizedString(@"DEFAULT_WINDOW_TITLE", "") keystrokeSequence:nil];
[self.entry.autotype addAssociation:associtation];
}
- (void)removeWindowAssociation:(id)sender {
NSInteger row = [self.windowAssociationsTableView selectedRow];
if(row > - 1 && row < [self.entry.autotype.associations count]) {
[self.entry.autotype removeAssociation:self.entry.autotype.associations[row]];
}
}