thrimbletrimmer: also pause on spacebar

Most video players pause on space, so we make sure it works if they try
pull/116/head
Mike Lang 5 years ago
parent 775799944a
commit 983e3a61c6

@ -6,6 +6,7 @@ document.addEventListener('keypress', (event) => {
player.currentTime(player.currentTime()-10); player.currentTime(player.currentTime()-10);
break; break;
case "k": case "k":
case " ": // also pause on space
player.paused() ? player.play():player.pause(); player.paused() ? player.play():player.pause();
break; break;
case "l": case "l":

Loading…
Cancel
Save