mirror of
				https://github.com/SoPat712/YTLitePlus.git
				synced 2025-10-31 04:44:14 -04:00 
			
		
		
		
	added files via upload
This commit is contained in:
		
							
								
								
									
										29
									
								
								Tweaks/FLEX/Utility/Keyboard/FLEXKeyboardShortcutManager.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Tweaks/FLEX/Utility/Keyboard/FLEXKeyboardShortcutManager.h
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| // | ||||
| //  FLEXKeyboardShortcutManager.h | ||||
| //  FLEX | ||||
| // | ||||
| //  Created by Ryan Olson on 9/19/15. | ||||
| //  Copyright © 2020 FLEX Team. All rights reserved. | ||||
| // | ||||
|  | ||||
| #import <UIKit/UIKit.h> | ||||
|  | ||||
| @interface FLEXKeyboardShortcutManager : NSObject | ||||
|  | ||||
| @property (nonatomic, readonly, class) FLEXKeyboardShortcutManager *sharedManager; | ||||
|  | ||||
| /// @param key A single character string matching a key on the keyboard | ||||
| /// @param modifiers Modifier keys such as shift, command, or alt/option | ||||
| /// @param action The block to run on the main thread when the key & modifier combination is recognized. | ||||
| /// @param description Shown the the keyboard shortcut help menu, which is accessed via the '?' key. | ||||
| /// @param allowOverride Allow registering even if there's an existing action associated with that key/modifier. | ||||
| - (void)registerSimulatorShortcutWithKey:(NSString *)key | ||||
|                                modifiers:(UIKeyModifierFlags)modifiers | ||||
|                                   action:(dispatch_block_t)action | ||||
|                              description:(NSString *)description | ||||
|                            allowOverride:(BOOL)allowOverride; | ||||
|  | ||||
| @property (nonatomic, getter=isEnabled) BOOL enabled; | ||||
| @property (nonatomic, readonly) NSString *keyboardShortcutsDescription; | ||||
|  | ||||
| @end | ||||
		Reference in New Issue
	
	Block a user
	 Balackburn
					Balackburn