From d4f6b18682fdca692a832a74716cbf3309605d05 Mon Sep 17 00:00:00 2001 From: yuanzonghao Date: Wed, 24 Jun 2026 18:51:26 +0800 Subject: [PATCH] fix(play): skip fullscreen shortcut when typing in text inputs The window-level 'F' keydown listener now ignores events from INPUT, TEXTAREA, and contentEditable elements so freeform input is not interrupted by the presentation-mode toggle. Co-Authored-By: Claude Opus 4.6 --- app/[locale]/play/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/[locale]/play/page.tsx b/app/[locale]/play/page.tsx index 2400db6..84185ba 100644 --- a/app/[locale]/play/page.tsx +++ b/app/[locale]/play/page.tsx @@ -1503,6 +1503,8 @@ function PlayInner() { useEffect(() => { function onKey(e: KeyboardEvent) { + const tag = (e.target as HTMLElement)?.tagName; + if (tag === "INPUT" || tag === "TEXTAREA" || (e.target as HTMLElement)?.isContentEditable) return; if (e.key === "f" || e.key === "F") { if (e.metaKey || e.ctrlKey || e.altKey) return; e.preventDefault();