From c119850bda37ed2847cc5da6956650fcd9d66cbc Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Wed, 18 Sep 2024 16:02:50 +0700 Subject: [PATCH] fix cannot go to the next page by enter key in amount page --- 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 7324a9dd9fbe..6ac0174da466 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) => {