Skip to content

Commit 67580db

Browse files
Saadnajmitido64
andauthored
Update RCTTextInputComponentView.mm
Co-authored-by: Tommy Nguyen <[email protected]>
1 parent 44fee32 commit 67580db

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

packages/react-native/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -627,13 +627,13 @@ - (void)submitOnKeyDownIfNeeded:(nonnull NSEvent *)event
627627
const bool metaKey = [keyEvent[@"metaKey"] boolValue];
628628
const bool functionKey = [keyEvent[@"functionKey"] boolValue];
629629

630-
shouldSubmit = std::any_of(
631-
props.traits.submitKeyEvents.begin(),
632-
props.traits.submitKeyEvents.end(),
633-
[&](auto const &submitKeyEvent) {
634-
return submitKeyEvent.key == key && submitKeyEvent.altKey == altKey &&
635-
submitKeyEvent.shiftKey == shiftKey && submitKeyEvent.ctrlKey == ctrlKey &&
636-
submitKeyEvent.metaKey == metaKey && submitKeyEvent.functionKey == functionKey;
630+
shouldSubmit = std::any_of(
631+
props.traits.submitKeyEvents.begin(),
632+
props.traits.submitKeyEvents.end(),
633+
[&](auto const &submitKeyEvent) {
634+
return submitKeyEvent.key == key && submitKeyEvent.altKey == altKey &&
635+
submitKeyEvent.shiftKey == shiftKey && submitKeyEvent.ctrlKey == ctrlKey &&
636+
submitKeyEvent.metaKey == metaKey && submitKeyEvent.functionKey == functionKey;
637637
});
638638
}
639639
}

0 commit comments

Comments
 (0)