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