mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Fixed pausing with spacebar playing video on casting
This commit is contained in:
		| @@ -620,6 +620,11 @@ document.addEventListener("keydown", function(event) { | ||||
|         document.querySelector("#import") != document.activeElement && | ||||
|         document.querySelector("#find_input") != document.activeElement && | ||||
|         document.querySelector("#import_spotify") != document.activeElement) { | ||||
|             if(chromecastAvailable) { | ||||
|                 event.preventDefault(); | ||||
|                 Player.playPauseVideo(); | ||||
|                 return false; | ||||
|             } else { | ||||
|                 if(videoSource == "soundcloud") { | ||||
|                     event.preventDefault(); | ||||
|                     Playercontrols.play_pause(); | ||||
| @@ -634,6 +639,7 @@ document.addEventListener("keydown", function(event) { | ||||
|                     Player.player.playVideo(); | ||||
|                     return false; | ||||
|                 } | ||||
|             } | ||||
|         } else { | ||||
|             find_start = false; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user