mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-23 17:29:28 +00:00
Autotype now uses key presses instead of paste whenever possible.
This commit is contained in:
@@ -22,6 +22,8 @@
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
FOUNDATION_EXTERN uint16_t const kMPUnknownKeyCode;
|
||||
|
||||
typedef struct {
|
||||
CGEventFlags modifier;
|
||||
CGKeyCode keyCode;
|
||||
@@ -34,6 +36,10 @@ NS_INLINE MPModifiedKey MPMakeModifiedKey(CGEventFlags modifier, CGKeyCode keyCo
|
||||
return k;
|
||||
}
|
||||
|
||||
NS_INLINE BOOL MPIsValidModifiedKey(MPModifiedKey k) {
|
||||
return (k.keyCode == kMPUnknownKeyCode);
|
||||
}
|
||||
|
||||
@interface NSValue(NSValueMPModifiedKeyExtensions)
|
||||
@property (nonatomic, readonly, assign) MPModifiedKey modifiedKeyValue;
|
||||
+ (instancetype)valueWithModifiedKey:(MPModifiedKey)key;
|
||||
|
||||
Reference in New Issue
Block a user