press ctrl-i to toggle inspect element

This commit is contained in:
Jared Forsyth 2015-06-03 10:25:53 -07:00
parent e68f89bfad
commit bba576a172
1 changed files with 7 additions and 0 deletions

View File

@ -110,6 +110,13 @@ RCT_EXPORT_MODULE()
[weakSelf toggle];
}];
// Toggle element inspector
[commands registerKeyCommandWithInput:@"i"
modifierFlags:UIKeyModifierCommand
action:^(UIKeyCommand *command) {
[_bridge.eventDispatcher sendDeviceEventWithName:@"toggleElementInspector" body:nil];
}];
// Reload in normal mode
[commands registerKeyCommandWithInput:@"n"
modifierFlags:UIKeyModifierCommand