Skip to content

Commit

Permalink
fix: resolve issue with right arrow keystroke functionality (#1568)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinley4 authored Nov 17, 2024
1 parent ae84752 commit b510fec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VideoPlayer2.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export const VideoPlayer: FunctionComponent<VideoPlayerProps> = ({
player.playbackRate(1);
}
};
document.addEventListener('keydown', handleKeyPress);
document.addEventListener('keydown', handleKeyPress, {capture: true});
document.addEventListener('keyup', handleKeyUp);
// Cleanup function
return () => {
Expand Down

0 comments on commit b510fec

Please sign in to comment.