Skip to content

Commit

Permalink
fix bug about keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
coderyi committed Oct 19, 2016
1 parent 897f002 commit df51661
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion NetworkEye/NetworkEye/NEHTTPEye.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,14 @@ + (void)setEnabled:(BOOL)enabled {
[sessionConfiguration unload];
}
}
#if TARGET_OS_SIMULATOR
[NEKeyboardShortcutManager sharedManager].enabled = enabled;
[[NEKeyboardShortcutManager sharedManager] registerSimulatorShortcutWithKey:@"n" modifiers:UIKeyModifierCommand action:^{
NEHTTPEyeViewController *viewController = [[NEHTTPEyeViewController alloc] init];
[[[[[UIApplication sharedApplication] delegate] window] rootViewController]
presentViewController:viewController animated:YES completion:nil];
} description:nil];
#endif
}

+ (BOOL)isEnabled {
Expand Down

0 comments on commit df51661

Please sign in to comment.