Added Autotype stubbs

Some changes to handle remebering key files in the password input
This commit is contained in:
michael starke
2013-11-16 00:07:14 +01:00
parent 3e56f2269d
commit c7b5bdac74
10 changed files with 100 additions and 6 deletions

View File

@@ -10,6 +10,7 @@
#import "DDHotKeyCenter.h"
#import "MPPasteBoardController.h"
#import "MPDocument.h"
#import "MPDocument+Autotype.h"
#import "KPKEntry.h"
@@ -103,6 +104,18 @@
NSString *windowTitle = [self _frontMostWindowTitle];
NSLog(@"Looking for entries matching window title:%@", windowTitle);
/*
Query the document to generate a autotype command list for the window title
We do not care where this came form, just get the autotype commands
*/
NSArray *autotypeCandidates = [[currentDocument findEntriesForWindowTitle:windowTitle] lastObject];
if([autotypeCandidates count] == 0) {
return; // No Entries found.
}
/*
Implement!
*/
return;
KPKEntry *selectedEntry = currentDocument.selectedEntry;