mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 20:59:27 +00:00
Command creation works with simple paste commands.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user