From 0cc0aaecbb39db0e1d48081109d80dede6869744 Mon Sep 17 00:00:00 2001 From: Siqi Liu Date: Wed, 1 Jun 2016 08:39:58 -0700 Subject: [PATCH] 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 --- React/Base/RCTKeyCommands.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/React/Base/RCTKeyCommands.m b/React/Base/RCTKeyCommands.m index 77ba60545..be59c984b 100644 --- a/React/Base/RCTKeyCommands.m +++ b/React/Base/RCTKeyCommands.m @@ -108,7 +108,7 @@ RCT_NOT_IMPLEMENTED(- (instancetype)init) - (NSArray *)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; }