Followup for Add Shortcut "Double R" to Reload JS in iOS

Summary: Change nit codes in comments.

Reviewed By: mkonicek

Differential Revision: D3371536

fbshipit-source-id: 4133af88568f15410ff90c945695f82ffd94eb95
This commit is contained in:
Siqi Liu 2016-06-01 08:39:58 -07:00 committed by Facebook Github Bot 1
parent 572a85fa24
commit 0cc0aaecbb

View File

@ -108,7 +108,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
- (NSArray<UIKeyCommand *> *)RCT_keyCommands
{
/**
/*
* If current first responder is UITextView or UITextField, disable the shortcut key commands.
* For example, double-pressing a key should type two characters into the text view,
* not invoke a predefined keyboard shortcut.
@ -121,7 +121,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init)
UIResponder *firstResponder = [UIResponder RCT_getFirstResponder: self];
if ([firstResponder isKindOfClass:[UITextView class]] ||
[firstResponder isKindOfClass:[UITextField class]] ||
[firstResponder.class conformsToProtocol:@protocol(UITextViewDelegate)]) {
[firstResponder conformsToProtocol:@protocol(UITextViewDelegate)]) {
return nil;
}