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;
|
||||
}
|
||||
|
||||
// If not needed to prevent the default,
|
||||
// add keycode handler above preventDefault & return after that
|
||||
e.preventDefault();
|
||||
|
||||
if (e.keyCode === SPACE_BAR_KEYCODE) {
|
||||
videoNode.paused ? videoNode.play() : videoNode.pause();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue