1
0
mirror of https://github.com/danog/Telegram.git synced 2024-12-02 09:27:55 +01:00
Telegram/Telegraph/TGKeyCommandController.h
2016-02-25 01:03:51 +01:00

26 lines
496 B
Objective-C

#import "TGKeyCommand.h"
@class TGViewController;
@protocol TGKeyCommandResponder
- (void)processKeyCommand:(UIKeyCommand *)keyCommand;
- (NSArray *)availableKeyCommands;
@optional
- (bool)isExclusive;
@end
@interface TGKeyCommandController : UIResponder
- (instancetype)initWithRootController:(TGViewController *)rootController;
- (void)performActionForKeyCommand:(TGKeyCommand *)keyCommand;
- (bool)isKeyCommandOccupied:(TGKeyCommand *)keyCommand;
+ (bool)keyCommandsSupported;
@end