Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Fix space bar moving page. Closes #2110

Gabe Kangas442ed7052084
diff --git a/web/components/video/OwncastPlayer/OwncastPlayer.tsx b/web/components/video/OwncastPlayer/OwncastPlayer.tsx
index c96e6ae315..f92ee9c6f8 100644
--- a/web/components/video/OwncastPlayer/OwncastPlayer.tsx
+++ b/web/components/video/OwncastPlayer/OwncastPlayer.tsx
@@ -183,8 +183,9 @@ export const OwncastPlayer: FC<OwncastPlayerProps> = ({ source, online }) => {
};
// Register keyboard shortcut for the space bar to toggle playback
- useHotkeys('space', togglePlayback, {
- enableOnContentEditable: false,
+ useHotkeys('space', e => {
+ e.preventDefault();
+ togglePlayback();
});
// Register keyboard shortcut for f to toggle full screen