Fix space bar moving page. Closes #2110
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user