Command creation works with simple paste commands.

This commit is contained in:
michael starke
2014-03-20 23:59:16 +01:00
parent ebc7f5bca8
commit 6446e2ab94
6 changed files with 84 additions and 17 deletions

View File

@@ -11,6 +11,15 @@
@implementation MPAutotypeKeyPress
- (instancetype)initWithModifierMask:(CGEventFlags)modiferMask keyCode:(CGKeyCode)code {
self = [super init];
if(self) {
_modifierMask = modiferMask;
_keyCode = code;
}
return self;
}
- (void)execute {
if(![self isValid]) {
return; // no valid command. Stop.