//
//  GSShortcutHandler.h
//  GlyphsApp
//
//  Created by Georg Seifert on 28.08.23.
//  Copyright © 2023 schriftgestaltung.de. All rights reserved.
//

NS_ASSUME_NONNULL_BEGIN
@protocol GSShortcutCommandProtocol;

@interface GSShortcutHandler : NSObject

+ (NSArray *)commandShortcuts;

+ (void)registerShortcutCommand:(NSString *)title group:(NSString *)group identifier:(NSString *)identifier action:(SEL)action target:(nullable NSObject<GSShortcutCommandProtocol> *)target character:(nullable NSString *)character modifierFlags:(NSEventModifierFlags)modifierFlags;

+ (void)registerToolShortCut:(NSString *)title group:(NSString *)group identifier:(NSString *)identifier key:(NSString *)userDefaultsKey;

+ (void)keyDown:(NSEvent *)theEvent;

@end

NS_ASSUME_NONNULL_END
