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
This commit is contained in:
Ingrid Wang
2024-08-26 09:04:35 -07:00
committed by Facebook GitHub Bot
parent 6cfe51ded0
commit b6fc75a121
@@ -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"];