let space key toggle video in fullscreen
[booh] / data / booh / themes / sbs / root / booh.js
index 5eecd284e1e764f3b8c445fab8eafb396d97082d..66b0f90c6c2c088866d658e3c1f11723e9bb5f36 100644 (file)
@@ -328,6 +328,17 @@ function last() {
     display_current();
 }
 
+function toggle_video() {
+    if (types[current] == 'video' && dbltilda_flowplayer_active == 'true') {
+        var player = flowplayer('player');
+        if (player.isLoaded()) {
+            player.toggle();
+        } else {
+            player.play();
+        }
+    }
+}
+
 function keyDownEvent(key) {
     if (!key) {
         key = event;
@@ -337,6 +348,9 @@ function keyDownEvent(key) {
         return;
     }
     switch (key.which) {
+      case 32: // space
+        toggle_video();
+        break;
       case 36: // home
         first();
         break;