mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-01-10 06:41:11 +00:00
git-subtree-dir: submodules/LegacyComponents git-subtree-mainline:6086305304git-subtree-split:d559434616
26 lines
513 B
Objective-C
26 lines
513 B
Objective-C
#import <LegacyComponents/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
|
|
|