From 294c7354b1b506a6522c623bfcd333748be32620 Mon Sep 17 00:00:00 2001 From: optrader Date: Tue, 11 Nov 2025 19:14:37 +0900 Subject: [PATCH] [251111] fix: MediaPlayer FullScreen Overlay Focus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit πŸ• 컀밋 μ‹œκ°„: 2025. 11. 11. 19:14:36 πŸ“Š λ³€κ²½ 톡계: β€’ 총 파일: 1개 β€’ μΆ”κ°€: +9쀄 β€’ μ‚­μ œ: -7쀄 πŸ“ μˆ˜μ •λœ 파일: ~ com.twin.app.shoptime/src/views/DetailPanel/ProductContentSection/ProductVideo/ProductVideo.v2.jsx πŸ”§ μ£Όμš” λ³€κ²½ λ‚΄μš©: β€’ μ½”λ“œ 정리 및 μ΅œμ ν™” --- .../ProductVideo/ProductVideo.v2.jsx | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) 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]);