FLEXKeyboardShortcutManager.h 565 B

12345678910111213141516171819202122232425
  1. //
  2. // FLEXKeyboardShortcutManager.h
  3. // FLEX
  4. //
  5. // Created by Ryan Olson on 9/19/15.
  6. // Copyright © 2015 Flipboard. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #if TARGET_OS_SIMULATOR
  10. @interface FLEXKeyboardShortcutManager : NSObject
  11. + (instancetype)sharedManager;
  12. - (void)registerSimulatorShortcutWithKey:(NSString *)key modifiers:(UIKeyModifierFlags)modifiers action:(dispatch_block_t)action description:(NSString *)description;
  13. - (NSString *)keyboardShortcutsDescription;
  14. @property (nonatomic, assign, getter=isEnabled) BOOL enabled;
  15. @end
  16. #endif