aboutsummaryrefslogtreecommitdiffstats
path: root/Framework/MASShortcutValidator.h
blob: cc5f8168a1dff2220208fbb0eef8034908ec80e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#import "MASShortcut.h"

@interface MASShortcutValidator : NSObject

// The following API enable hotkeys with the Option key as the only modifier
// For example, Option-G will not generate © and Option-R will not paste ®
@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