From f48d74a1e35f792b0336221170e6660a3e05ef89 Mon Sep 17 00:00:00 2001 From: nkdengineer Date: Sun, 14 Jul 2024 23:35:08 +0700 Subject: [PATCH 1/2] fix: Attachment - Press enter fullscreen mode in video player by Tab --- src/components/VideoPlayer/IconButton.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/VideoPlayer/IconButton.tsx b/src/components/VideoPlayer/IconButton.tsx index e2b931bc256a..7cf73765caac 100644 --- a/src/components/VideoPlayer/IconButton.tsx +++ b/src/components/VideoPlayer/IconButton.tsx @@ -5,6 +5,7 @@ import PressableWithFeedback from '@components/Pressable/PressableWithFeedback'; import Tooltip from '@components/Tooltip'; import useThemeStyles from '@hooks/useThemeStyles'; import type IconAsset from '@src/types/utils/IconAsset'; +import CONST from '@src/CONST'; type IconButtonProps = { src: IconAsset; @@ -29,6 +30,7 @@ function IconButton({src, fill = 'white', onPress, style, hoverStyle, tooltipTex onPress={onPress} style={[styles.videoIconButton, style]} hoverStyle={[styles.videoIconButtonHovered, hoverStyle]} + role={CONST.ROLE.BUTTON} > Date: Mon, 15 Jul 2024 00:00:05 +0700 Subject: [PATCH 2/2] fix lint --- src/components/VideoPlayer/IconButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/VideoPlayer/IconButton.tsx b/src/components/VideoPlayer/IconButton.tsx index 7cf73765caac..3066cc7620ef 100644 --- a/src/components/VideoPlayer/IconButton.tsx +++ b/src/components/VideoPlayer/IconButton.tsx @@ -4,8 +4,8 @@ import Icon from '@components/Icon'; import PressableWithFeedback from '@components/Pressable/PressableWithFeedback'; import Tooltip from '@components/Tooltip'; import useThemeStyles from '@hooks/useThemeStyles'; -import type IconAsset from '@src/types/utils/IconAsset'; import CONST from '@src/CONST'; +import type IconAsset from '@src/types/utils/IconAsset'; type IconButtonProps = { src: IconAsset;