press ctrl-i to toggle inspect element
This commit is contained in:
parent
e68f89bfad
commit
bba576a172
|
@ -110,6 +110,13 @@ RCT_EXPORT_MODULE()
|
||||||
[weakSelf toggle];
|
[weakSelf toggle];
|
||||||
}];
|
}];
|
||||||
|
|
||||||
|
// Toggle element inspector
|
||||||
|
[commands registerKeyCommandWithInput:@"i"
|
||||||
|
modifierFlags:UIKeyModifierCommand
|
||||||
|
action:^(UIKeyCommand *command) {
|
||||||
|
[_bridge.eventDispatcher sendDeviceEventWithName:@"toggleElementInspector" body:nil];
|
||||||
|
}];
|
||||||
|
|
||||||
// Reload in normal mode
|
// Reload in normal mode
|
||||||
[commands registerKeyCommandWithInput:@"n"
|
[commands registerKeyCommandWithInput:@"n"
|
||||||
modifierFlags:UIKeyModifierCommand
|
modifierFlags:UIKeyModifierCommand
|
||||||
|
|
Loading…
Reference in New Issue