home page fixes; various issues fix
This commit is contained in:
@@ -42,7 +42,7 @@ window.aircox = {
|
||||
playerLoader.enable(false)
|
||||
this.playerLoader = playerLoader
|
||||
|
||||
document.addEventListener("keypress", e => this.onKeyPress(e), false)
|
||||
document.addEventListener("keyup", e => this.onKeyPress(e), false)
|
||||
}
|
||||
|
||||
if(initApp) {
|
||||
@@ -55,8 +55,10 @@ window.aircox = {
|
||||
},
|
||||
|
||||
onKeyPress(event) {
|
||||
if(event.key == " ")
|
||||
if(event.key == " ") {
|
||||
this.player.togglePlay()
|
||||
event.stopPropagation()
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user