mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 12:05:06 +00:00
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:
parent
572a85fa24
commit
0cc0aaecbb
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user