Skip to content

Commit b510fec

Browse files
authored
fix: resolve issue with right arrow keystroke functionality (#1568)
1 parent ae84752 commit b510fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/VideoPlayer2.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
311311
player.playbackRate(1);
312312
}
313313
};
314-
document.addEventListener('keydown', handleKeyPress);
314+
document.addEventListener('keydown', handleKeyPress, {capture: true});
315315
document.addEventListener('keyup', handleKeyUp);
316316
// Cleanup function
317317
return () => {

0 commit comments

Comments
 (0)