From 88d80e007740976b1d3e615d1cad2eafcedcdc6d Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 18 Sep 2024 20:42:50 +0900 Subject: [PATCH] Merge pull request #49370 from nkdengineer/fix/49368 [CP Staging] fix cannot go to the next page by enter key in amount page (cherry picked from commit 25b20e930bc7f6149a58f8165dadf50a374e6615) (CP triggered by luacmartins) --- src/components/Button/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Button/index.tsx b/src/components/Button/index.tsx index 000445abb46..98a3944face 100644 --- a/src/components/Button/index.tsx +++ b/src/components/Button/index.tsx @@ -149,7 +149,7 @@ function KeyboardShortcutComponent({isDisabled = false, isLoading = false, onPre const isFocused = useIsFocused(); const activeElementRole = useActiveElementRole(); - const shouldDisableEnterShortcut = useMemo(() => accessibilityRoles.includes(activeElementRole ?? ''), [activeElementRole]); + const shouldDisableEnterShortcut = useMemo(() => accessibilityRoles.includes(activeElementRole ?? '') && activeElementRole !== CONST.ROLE.PRESENTATION, [activeElementRole]); const keyboardShortcutCallback = useCallback( (event?: GestureResponderEvent | KeyboardEvent) => {