Check key string also.
Keycode is not reliable for checking anything else than letters.
This commit is contained in:
parent
5c4ce36025
commit
45cb2e6c26
@ -1054,14 +1054,15 @@ export default class AnimeNotifier {
|
|||||||
return preventDefault()
|
return preventDefault()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// "+" = Audio speed up
|
// "+" = Audio speed up
|
||||||
if(e.keyCode === 107 || e.keyCode === 187) {
|
if(e.keyCode === 107 || e.keyCode === 187 || e.key == "+") {
|
||||||
this.audioPlayer.addSpeed(0.05)
|
this.audioPlayer.addSpeed(0.05)
|
||||||
return preventDefault()
|
return preventDefault()
|
||||||
}
|
}
|
||||||
|
|
||||||
// "-" = Audio speed down
|
// "-" = Audio speed down
|
||||||
if(e.keyCode === 109 || e.keyCode === 189) {
|
if(e.keyCode === 109 || e.keyCode === 189 || e.key == "-") {
|
||||||
this.audioPlayer.addSpeed(-0.05)
|
this.audioPlayer.addSpeed(-0.05)
|
||||||
return preventDefault()
|
return preventDefault()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user