summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-02-08 00:01:53 +0100
committerSamantaz Fox <coding@samantaz.fr>2022-02-08 01:26:51 +0100
commit3c882cff6e31d8dfc680ce3fe4dce73ba8946817 (patch)
treec7a09a127eedc6c43db566bddc71eba0ec776e31 /assets
parentf73aef33f013d79d59c069c9e6eb5ec1b8c610d9 (diff)
downloadinvidious-3c882cff6e31d8dfc680ce3fe4dce73ba8946817.tar.gz
invidious-3c882cff6e31d8dfc680ce3fe4dce73ba8946817.tar.bz2
invidious-3c882cff6e31d8dfc680ce3fe4dce73ba8946817.zip
player shortcuts: ignore numpad
Diffstat (limited to 'assets')
-rw-r--r--assets/js/player.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/assets/js/player.js b/assets/js/player.js
index a5ea08ec..d7dd8bf8 100644
--- a/assets/js/player.js
+++ b/assets/js/player.js
@@ -612,6 +612,9 @@ window.addEventListener('keydown', e => {
case '7':
case '8':
case '9':
+ // Ignore numpad numbers
+ if (code > 57) break;
+
const percent = (code - 48) * 10;
action = set_time_percent.bind(this, percent);
break;