diff options
Diffstat (limited to 'src/app')
| -rw-r--r-- | src/app/page.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/app/page.tsx b/src/app/page.tsx index 95196d2..4be028c 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -128,11 +128,13 @@ function KaraokePage() { handlePlayPause(); } if (e.code === "ArrowRight") { + if (document.activeElement?.tagName === "INPUT") return; const video = videoRef.current; if (!video) return; video.currentTime += 5; } if (e.code === "ArrowLeft") { + if (document.activeElement?.tagName === "INPUT") return; const video = videoRef.current; if (!video) return; video.currentTime -= 5; |
