diff --git a/packages/react-native/React/Base/RCTKeyCommands.m b/packages/react-native/React/Base/RCTKeyCommands.m index 2fb0db601128fa..1961de7e2bb6dd 100644 --- a/packages/react-native/React/Base/RCTKeyCommands.m +++ b/packages/react-native/React/Base/RCTKeyCommands.m @@ -128,13 +128,11 @@ - (void)handleKeyUIEventSwizzle:(UIEvent *)event isKeyDown = [event _isKeyDown]; } - BOOL hasFirstResponder = NO; if (isKeyDown && modifiedInput.length > 0) { UIResponder *firstResponder = nil; for (UIWindow *window in [self allWindows]) { firstResponder = [window valueForKey:@"firstResponder"]; if (firstResponder) { - hasFirstResponder = YES; break; } }