mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-05 05:15:22 +00:00
remove event.preventDefault() so refresh works
This commit is contained in:
parent
27c15fee6b
commit
9a6b79c41e
1 changed files with 1 additions and 5 deletions
|
@ -129,10 +129,6 @@ function VideoViewer(props: Props) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If not needed to prevent the default,
|
|
||||||
// add keycode handler above preventDefault & return after that
|
|
||||||
e.preventDefault();
|
|
||||||
|
|
||||||
if (e.keyCode === SPACE_BAR_KEYCODE) {
|
if (e.keyCode === SPACE_BAR_KEYCODE) {
|
||||||
videoNode.paused ? videoNode.play() : videoNode.pause();
|
videoNode.paused ? videoNode.play() : videoNode.pause();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue