From 080766481c49f9711e35af1374df7707aea9beb6 Mon Sep 17 00:00:00 2001 From: Ellen Marie Dash Date: Mon, 6 Apr 2020 13:09:32 -0400 Subject: [PATCH] Fix _+: keys in Firefox 19466b5 fixes the keys without shift; this fixes them with shift. Related: https://github.com/nurdism/neko/commit/19466b5625b6e6c2796faa7eeac0e3be1797f7f5 Context: https://github.com/nurdism/neko/issues/51#issuecomment-609877197 --- client/src/components/video.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/src/components/video.vue b/client/src/components/video.vue index 00dd11b7..b56add24 100644 --- a/client/src/components/video.vue +++ b/client/src/components/video.vue @@ -466,15 +466,15 @@ // frick you firefox getCode(e: KeyboardEvent): number { let key = e.keyCode - if (key === 59 && e.key === ';') { + if (key === 59 && (e.key === ';' || e.key === ':')) { key = 186 } - if (key === 61 && e.key === '=') { + if (key === 61 && (e.key === '=' || e.key === '+')) { key = 187 } - if (key === 173 && e.key === '-') { + if (key === 173 && (e.key === '-' || e.key === '_')) { key = 189 }