Merge pull request #68 from duckinator/patch-1

Fix _+: keys in Firefox
This commit is contained in:
Nurdism 2020-04-06 13:41:54 -04:00 committed by GitHub
commit dd59cbeea9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
}