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,17 +129,13 @@ 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Fullscreen toggle shortcuts
|
// Fullscreen toggle shortcuts
|
||||||
if (e.keyCode === FULLSCREEN_KEYCODE || e.keyCode === F11_KEYCODE) {
|
if (e.keyCode === FULLSCREEN_KEYCODE || e.keyCode === F11_KEYCODE) {
|
||||||
if(!player.isFullscreen()) {
|
if (!player.isFullscreen()) {
|
||||||
player.requestFullscreen();
|
player.requestFullscreen();
|
||||||
} else {
|
} else {
|
||||||
player.exitFullscreen();
|
player.exitFullscreen();
|
||||||
|
|
Loading…
Add table
Reference in a new issue