Merge pull request #168 from Amatrelan/go
Removal of keyCode checks from music speed controls
This commit is contained in:
commit
bd6291290b
@ -1056,13 +1056,13 @@ export default class AnimeNotifier {
|
|||||||
|
|
||||||
|
|
||||||
// "+" = Audio speed up
|
// "+" = Audio speed up
|
||||||
if(e.keyCode === 107 || e.keyCode === 187 || e.key == "+") {
|
if(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 || e.key == "-") {
|
if(e.key == "-") {
|
||||||
this.audioPlayer.addSpeed(-0.05)
|
this.audioPlayer.addSpeed(-0.05)
|
||||||
return preventDefault()
|
return preventDefault()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user