Autotype now uses key presses instead of paste whenever possible.

This commit is contained in:
Michael Starke
2018-11-05 11:55:07 +01:00
parent 57e28e1417
commit afc69f69ae
18 changed files with 1008 additions and 521 deletions

View File

@@ -22,11 +22,18 @@
#import "MPModifiedKey.h"
uint16_t const kMPUnknownKeyCode = UINT16_MAX;
@implementation NSValue(NSValueMPModifiedKeyExtensions)
- (MPModifiedKey)modifiedKeyValue {
MPModifiedKey key;
[self getValue:&key];
if(@available(macOS 10.13, *)) {
[self getValue:&key size:sizeof(MPModifiedKey)];
}
else {
[self getValue:&key];
}
return key;
}