mirror of
https://github.com/danog/Telegram.git
synced 2024-12-02 09:27:55 +01:00
26 lines
496 B
Objective-C
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
|
|
|