From 27b9851a8701309f5fc6d829e5fa37ccfbec99f7 Mon Sep 17 00:00:00 2001 From: Jarmo Riikonen Date: Mon, 2 Jul 2018 16:45:13 +0300 Subject: [PATCH] Music play speed controls not working At last on scandinavian keyboard layout. So put general "-" "+" controls. --- scripts/AnimeNotifier.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/AnimeNotifier.ts b/scripts/AnimeNotifier.ts index e9f96420..9caad55d 100644 --- a/scripts/AnimeNotifier.ts +++ b/scripts/AnimeNotifier.ts @@ -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() }