Skip to content

Commit df51661

Browse files
committed
fix bug about keyboard
1 parent 897f002 commit df51661

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

NetworkEye/NetworkEye/NEHTTPEye.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ + (void)setEnabled:(BOOL)enabled {
4141
[sessionConfiguration unload];
4242
}
4343
}
44+
#if TARGET_OS_SIMULATOR
4445
[NEKeyboardShortcutManager sharedManager].enabled = enabled;
4546
[[NEKeyboardShortcutManager sharedManager] registerSimulatorShortcutWithKey:@"n" modifiers:UIKeyModifierCommand action:^{
4647
NEHTTPEyeViewController *viewController = [[NEHTTPEyeViewController alloc] init];
4748
[[[[[UIApplication sharedApplication] delegate] window] rootViewController]
4849
presentViewController:viewController animated:YES completion:nil];
4950
} description:nil];
50-
51+
#endif
5152
}
5253

5354
+ (BOOL)isEnabled {

0 commit comments

Comments
 (0)