mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-02-11 09:11:14 +08:00
press ctrl-i to toggle inspect element
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user