mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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:
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"];
|
||||
|
||||
Reference in New Issue
Block a user