From b6fc75a121aabe4adda40adcaafce871511d48db Mon Sep 17 00:00:00 2001 From: Ingrid Wang Date: Mon, 26 Aug 2024 09:04:35 -0700 Subject: [PATCH] Remove check for deprecated isIgnoringInteractionEvents for hotkeys (#46178) Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/46178 Changelog: [iOS][Internal] Remove deprecated API isIgnoringInteractionEvents Reviewed By: christophpurrer Differential Revision: D61678577 fbshipit-source-id: fc57f108c7ea242da784f1ab0cd131fb84fc25d1 --- packages/react-native/React/Base/RCTKeyCommands.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/react-native/React/Base/RCTKeyCommands.m b/packages/react-native/React/Base/RCTKeyCommands.m index 19ef5b1f0d4..2fb0db60112 100644 --- a/packages/react-native/React/Base/RCTKeyCommands.m +++ b/packages/react-native/React/Base/RCTKeyCommands.m @@ -128,9 +128,8 @@ RCT_NOT_IMPLEMENTED(-(instancetype)init) isKeyDown = [event _isKeyDown]; } - BOOL interactionEnabled = !RCTSharedApplication().isIgnoringInteractionEvents; BOOL hasFirstResponder = NO; - if (isKeyDown && modifiedInput.length > 0 && interactionEnabled) { + if (isKeyDown && modifiedInput.length > 0) { UIResponder *firstResponder = nil; for (UIWindow *window in [self allWindows]) { firstResponder = [window valueForKey:@"firstResponder"];