Music play speed controls not working

At last on scandinavian keyboard layout. So put general "-" "+" controls.
This commit is contained in:
Jarmo Riikonen 2018-07-02 16:45:13 +03:00
parent 5c4ce36025
commit 27b9851a87

View File

@ -1054,14 +1054,15 @@ export default class AnimeNotifier {
return preventDefault()
}
// "+" = Audio speed up
if(e.keyCode === 107 || e.keyCode === 187) {
if(e.keyCode === 107 || e.keyCode === 187 || e.key == "+") {
this.audioPlayer.addSpeed(0.05)
return preventDefault()
}
// "-" = Audio speed down
if(e.keyCode === 109 || e.keyCode === 189) {
if(e.keyCode === 109 || e.keyCode === 189 || e.key == "-") {
this.audioPlayer.addSpeed(-0.05)
return preventDefault()
}