diff --git a/src/components/VideoPlayer2.tsx b/src/components/VideoPlayer2.tsx index 71d6b56e..6f72e8dd 100644 --- a/src/components/VideoPlayer2.tsx +++ b/src/components/VideoPlayer2.tsx @@ -311,7 +311,7 @@ export const VideoPlayer: FunctionComponent = ({ player.playbackRate(1); } }; - document.addEventListener('keydown', handleKeyPress); + document.addEventListener('keydown', handleKeyPress, {capture: true}); document.addEventListener('keyup', handleKeyUp); // Cleanup function return () => {