diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx index d90a7121..152f7943 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx @@ -375,18 +375,20 @@ export function ProductVideoV2({ const handleFullscreenKeyDown = useCallback((e) => { if (!isPlaying || !isFullscreen) return; - if (e.key === 'Enter' || e.keyCode === 13) { - console.log('๐Ÿ–ฅ๏ธ [Fullscreen Container] Enter ํ‚ค - ํ† ๊ธ€ ์‹คํ–‰'); + // ESC ํ‚ค๋งŒ ์˜ค๋ฒ„๋ ˆ์ด ํ† ๊ธ€๋กœ ์ฒ˜๋ฆฌ + if (e.key === 'Escape' || e.keyCode === 27) { + console.log('๐Ÿ–ฅ๏ธ [Fullscreen Container] ESC ํ‚ค - ์˜ค๋ฒ„๋ ˆ์ด ํ† ๊ธ€ ์‹คํ–‰'); e.preventDefault(); e.stopPropagation(); toggleOverlayVisibility(); + return; } - if (e.key === 'Escape' || e.keyCode === 27) { - console.log('๐Ÿ–ฅ๏ธ [Fullscreen Container] ESC ํ‚ค - ํ† ๊ธ€ ์‹คํ–‰'); - e.preventDefault(); - e.stopPropagation(); - toggleOverlayVisibility(); + // Enter ํ‚ค๋Š” ๊ธฐ๋ณธ ๋™์ž‘ ํ—ˆ์šฉ (ํฌ์ปค์Šค๋œ ์š”์†Œ์˜ ๋™์ž‘ ์ˆ˜ํ–‰) + if (e.key === 'Enter' || e.keyCode === 13) { + console.log('๐Ÿ–ฅ๏ธ [Fullscreen Container] Enter ํ‚ค - ํฌ์ปค์Šค๋œ ์š”์†Œ ๋™์ž‘ ํ—ˆ์šฉ'); + // Enter ํ‚ค๋Š” preventDefaultํ•˜์ง€ ์•Š๊ณ  ๊ธฐ๋ณธ ๋™์ž‘ ํ—ˆ์šฉ + return; } }, [isPlaying, isFullscreen, toggleOverlayVisibility]);