Fix space bar moving page. Closes #2110

This commit is contained in:
Gabe Kangas
2022-10-08 17:14:34 -07:00
parent 4dfb602dff
commit 6773fc37a5

View File

@@ -183,8 +183,9 @@ export const OwncastPlayer: FC<OwncastPlayerProps> = ({ source, online }) => {
}; };
// Register keyboard shortcut for the space bar to toggle playback // Register keyboard shortcut for the space bar to toggle playback
useHotkeys('space', togglePlayback, { useHotkeys('space', e => {
enableOnContentEditable: false, e.preventDefault();
togglePlayback();
}); });
// Register keyboard shortcut for f to toggle full screen // Register keyboard shortcut for f to toggle full screen