We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae84752 commit b510fecCopy full SHA for b510fec
src/components/VideoPlayer2.tsx
@@ -311,7 +311,7 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
311
player.playbackRate(1);
312
}
313
};
314
- document.addEventListener('keydown', handleKeyPress);
+ document.addEventListener('keydown', handleKeyPress, {capture: true});
315
document.addEventListener('keyup', handleKeyUp);
316
// Cleanup function
317
return () => {
0 commit comments