Add pod MASShortcut 2.3.6
This commit is contained in:
29
Pods/MASShortcut/Framework/MASShortcutValidator.h
generated
Normal file
29
Pods/MASShortcut/Framework/MASShortcutValidator.h
generated
Normal file
@ -0,0 +1,29 @@
|
||||
#import "MASShortcut.h"
|
||||
|
||||
/**
|
||||
This class is used by the recording control to tell which shortcuts are acceptable.
|
||||
|
||||
There are two kinds of shortcuts that are not considered acceptable: shortcuts that
|
||||
are too simple (like single letter keys) and shortcuts that are already used by the
|
||||
operating system.
|
||||
*/
|
||||
@interface MASShortcutValidator : NSObject
|
||||
|
||||
/**
|
||||
Set to `YES` if you want to accept Option-something shortcuts.
|
||||
|
||||
`NO` by default, since Option-something shortcuts are often used by system,
|
||||
for example Option-G will type the © sign. This also applies to Option-Shift
|
||||
shortcuts – in other words, shortcut recorder will not accept shortcuts like
|
||||
Option-Shift-K by default. (Again, since Option-Shift-K inserts the Apple
|
||||
logo sign by default.)
|
||||
*/
|
||||
@property(assign) BOOL allowAnyShortcutWithOptionModifier;
|
||||
|
||||
+ (instancetype) sharedValidator;
|
||||
|
||||
- (BOOL) isShortcutValid: (MASShortcut*) shortcut;
|
||||
- (BOOL) isShortcut: (MASShortcut*) shortcut alreadyTakenInMenu: (NSMenu*) menu explanation: (NSString**) explanation;
|
||||
- (BOOL) isShortcutAlreadyTakenBySystem: (MASShortcut*) shortcut explanation: (NSString**) explanation;
|
||||
|
||||
@end
|
Reference in New Issue
Block a user