From d36d85a05876ddb6960dc9c7e515d511c0c44687 Mon Sep 17 00:00:00 2001 From: Theo Bentum Date: Thu, 5 Dec 2024 21:59:39 -0800 Subject: [PATCH 1/2] Make alert accessible via physical keyboard on Android --- VAMobile/src/utils/hooks/index.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/VAMobile/src/utils/hooks/index.tsx b/VAMobile/src/utils/hooks/index.tsx index e791f04b1d..2a8843e0db 100644 --- a/VAMobile/src/utils/hooks/index.tsx +++ b/VAMobile/src/utils/hooks/index.tsx @@ -347,6 +347,7 @@ export function useDestructiveActionSheet(): (props: useDestructiveActionSheetPr options: newButtons.map((button) => stringToTitleCase(isIOS() ? button.text : button.text + ' ')), containerStyle: { backgroundColor: currentTheme.colors.background.contentBox }, cancelButtonIndex: isIpad() ? undefined : newButtons.length - 1, + autoFocus: true, }, (buttonIndex) => { if (buttonIndex || buttonIndex === 0) { From 43fa4ec2e7790997b9e07f40fc769e54f4dd749c Mon Sep 17 00:00:00 2001 From: Theo Bentum Date: Thu, 5 Dec 2024 22:00:03 -0800 Subject: [PATCH 2/2] Make text input accessible via physical keyboard --- VAMobile/src/components/FormWrapper/FormFields/VATextInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VAMobile/src/components/FormWrapper/FormFields/VATextInput.tsx b/VAMobile/src/components/FormWrapper/FormFields/VATextInput.tsx index 916a43d6a7..c4037dc81c 100644 --- a/VAMobile/src/components/FormWrapper/FormFields/VATextInput.tsx +++ b/VAMobile/src/components/FormWrapper/FormFields/VATextInput.tsx @@ -170,7 +170,7 @@ const VATextInput: FC = (props: VATextInputProps) => { ) - return {content} + return {content} } return renderTextInput()