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

16 lines
548 B
Objective-C

#import <UIKit/UIKit.h>
@interface TGKeyCommand : NSObject <NSCopying>
@property (nonatomic, readonly) NSString *title;
@property (nonatomic, readonly) NSString *input;
@property (nonatomic, readonly) UIKeyModifierFlags modifierFlags;
- (UIKeyCommand *)UIKeyCommand;
+ (TGKeyCommand *)keyCommandWithTitle:(NSString *)title input:(NSString *)input modifierFlags:(UIKeyModifierFlags)modifierFlags;
+ (TGKeyCommand *)keyCommandWithUIKeyCommand:(UIKeyCommand *)uiKeyCommand;
+ (TGKeyCommand *)keyCommandForSystemActionSelector:(SEL)selector;
@end