We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 897f002 commit df51661Copy full SHA for df51661
1 file changed
NetworkEye/NetworkEye/NEHTTPEye.m
@@ -41,13 +41,14 @@ + (void)setEnabled:(BOOL)enabled {
41
[sessionConfiguration unload];
42
}
43
44
+#if TARGET_OS_SIMULATOR
45
[NEKeyboardShortcutManager sharedManager].enabled = enabled;
46
[[NEKeyboardShortcutManager sharedManager] registerSimulatorShortcutWithKey:@"n" modifiers:UIKeyModifierCommand action:^{
47
NEHTTPEyeViewController *viewController = [[NEHTTPEyeViewController alloc] init];
48
[[[[[UIApplication sharedApplication] delegate] window] rootViewController]
49
presentViewController:viewController animated:YES completion:nil];
50
} description:nil];
-
51
+#endif
52
53
54
+ (BOOL)isEnabled {
0 commit comments