mirror of
https://github.com/MacPass/MacPass.git
synced 2025-12-25 12:29:44 +00:00
Reworked use of DDHotKey to prevent unwanted deregistration.
This commit is contained in:
@@ -12,11 +12,17 @@
|
||||
|
||||
@property (readonly, copy) NSData *keyData;
|
||||
|
||||
|
||||
/**
|
||||
Use this method to retrieve the data, since deallocation of a hotkey unregisters it, this could yield unwanted behaviour!
|
||||
@return data for the default hot key.
|
||||
*/
|
||||
+ (NSData *)hotKeyDataWithKeyCode:(unsigned short)keyCode modifierFlags:(NSUInteger)flags;
|
||||
+ (NSData *)defaultHotKeyData;
|
||||
+ (instancetype)defaultHotKey;
|
||||
+ (instancetype)defaultHotKeyWithTask:(DDHotKeyTask)task;
|
||||
|
||||
- (instancetype)initWithKeyData:(NSData *)data task:(DDHotKeyTask)task;
|
||||
- (instancetype)initWithKeyData:(NSData *)data;
|
||||
+ (instancetype)hotKeyWithKeyData:(NSData *)data task:(DDHotKeyTask)task;
|
||||
+ (instancetype)hotKeyWithKeyData:(NSData *)data;
|
||||
|
||||
@end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user