mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-14 01:12:31 +00:00
Bumped Version. Added descriptions to autotype commands
This commit is contained in:
@@ -10,5 +10,4 @@
|
||||
|
||||
@interface MPAutotypeClear : MPAutotypeCommand
|
||||
|
||||
|
||||
@end
|
||||
|
||||
@@ -12,6 +12,10 @@
|
||||
|
||||
@implementation MPAutotypeClear
|
||||
|
||||
- (NSString *)description {
|
||||
return [[self class] description];
|
||||
}
|
||||
|
||||
- (void)execute {
|
||||
CGKeyCode keyCode = [MPKeyMapper keyCodeForCharacter:@"A"];
|
||||
if(keyCode == kMPUnknownKeyCode) {
|
||||
|
||||
@@ -21,10 +21,14 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSString *)description {
|
||||
return [[NSString alloc] initWithFormat:@"%@ delay: %ld ms", [self class], _delay];
|
||||
}
|
||||
|
||||
- (instancetype)initWithDelay:(NSUInteger)delay {
|
||||
self = [super init];
|
||||
if(self) {
|
||||
/* Delays longer than a minute are a bit lon */
|
||||
/* Delays longer than a minute are a bit long */
|
||||
_delay = MIN(60,delay);
|
||||
}
|
||||
return self;
|
||||
|
||||
@@ -31,6 +31,10 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSString *)description {
|
||||
return [[NSString alloc] initWithFormat:@"%@: modifierMaks:%llu keyCode:%d", [self class], self.modifierMask, self.keyCode];
|
||||
}
|
||||
|
||||
- (void)execute {
|
||||
if(![self isValid]) {
|
||||
return; // no valid command. Stop.
|
||||
|
||||
@@ -27,6 +27,10 @@
|
||||
return self;
|
||||
}
|
||||
|
||||
- (NSString *)description {
|
||||
return [[NSString alloc] initWithFormat:@"%@ paste:%@", [self class], self.pasteData];
|
||||
}
|
||||
|
||||
- (void)appendString:(NSString *)aString {
|
||||
self.pasteData = [self.pasteData stringByAppendingString:aString];
|
||||
}
|
||||
|
||||
@@ -58,11 +58,11 @@
|
||||
<key>CFBundlePackageType</key>
|
||||
<string>APPL</string>
|
||||
<key>CFBundleShortVersionString</key>
|
||||
<string>0.4.1</string>
|
||||
<string>0.5</string>
|
||||
<key>CFBundleSignature</key>
|
||||
<string>????</string>
|
||||
<key>CFBundleVersion</key>
|
||||
<string>2537</string>
|
||||
<string>2542</string>
|
||||
<key>LSMinimumSystemVersion</key>
|
||||
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
|
||||
<key>NSHumanReadableCopyright</key>
|
||||
|
||||
Reference in New Issue
Block a user