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
|
||||
useHotkeys('space', togglePlayback, {
|
||||
enableOnContentEditable: false,
|
||||
useHotkeys('space', e => {
|
||||
e.preventDefault();
|
||||
togglePlayback();
|
||||
});
|
||||
|
||||
// Register keyboard shortcut for f to toggle full screen
|
||||
|
||||
Reference in New Issue
Block a user