String as Autotype command results in only one Paste command - fixed #338

Signed-off-by: michael starke <michael.starke@hicknhack-software.com>
This commit is contained in:
michael starke
2015-08-07 17:24:04 +02:00
parent bc458506e5
commit 70ceb268ad
4 changed files with 39 additions and 22 deletions

View File

@@ -78,14 +78,14 @@
KPKWindowAssociation *association = [entry.autotype windowAssociationMatchingWindowTitle:windowTitle];
context = [[MPAutotypeContext alloc] initWithWindowAssociation:association];
}
if(context.isValid) {
if(context.valid) {
[contexts addObject:context];
}
}
/* Fall back to preferred Entry if no match was found */
if(contexts.count == 0 && usePreferredEntry) {
context = [[MPAutotypeContext alloc] initWithEntry:entry andSequence:entry.autotype.defaultKeystrokeSequence];
if(context.isValid) {
if(context.valid) {
[contexts addObject:context];
}
}