Started creation of Autotype out of normalized command strings

This commit is contained in:
michael starke
2014-02-19 19:45:00 +01:00
parent 24d0c3a6ee
commit 7f16310a4d
8 changed files with 69 additions and 16 deletions

View File

@@ -28,8 +28,9 @@
- (instancetype)initWithEntry:(KPKEntry *)entry andSequence:(NSString *)sequence {
self = [super init];
if(self) {
_command = [[sequence normalizedAutotypeSequence] copy];
_command = [sequence copy];
_entry = entry;
_normalizedCommand = [[sequence normalizedAutotypeSequence] copy];
}
return self;
}
@@ -39,4 +40,8 @@
return copy;
}
- (BOOL)isValid {
return (self.normalizedCommand != nil);
}
@end