mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-21 16:39:35 +00:00
extracted MPModifiedKey, fixed autotype obfuscation to correctly use modifiers
This commit is contained in:
@@ -7,21 +7,10 @@
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
#import "MPModifiedKey.h"
|
||||
|
||||
FOUNDATION_EXTERN uint16_t const kMPUnknownKeyCode;
|
||||
|
||||
typedef struct {
|
||||
CGEventFlags modifier;
|
||||
CGKeyCode keyCode;
|
||||
} MPModifiedKey;
|
||||
|
||||
NS_INLINE MPModifiedKey MPMakeModifiedKey(CGEventFlags modifier, CGKeyCode keyCode) {
|
||||
MPModifiedKey k;
|
||||
k.keyCode = keyCode;
|
||||
k.modifier = modifier;
|
||||
return k;
|
||||
}
|
||||
|
||||
@interface MPKeyMapper : NSObject
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user