mirror of
https://github.com/m1k1o/neko.git
synced 2024-07-24 14:40:50 +12:00
Fix _+: keys in Firefox
19466b5
fixes the keys without shift; this fixes them with shift. Related:19466b5625
Context: https://github.com/nurdism/neko/issues/51#issuecomment-609877197
This commit is contained in:
parent
82ca6e13ca
commit
080766481c
@ -466,15 +466,15 @@
|
|||||||
// frick you firefox
|
// frick you firefox
|
||||||
getCode(e: KeyboardEvent): number {
|
getCode(e: KeyboardEvent): number {
|
||||||
let key = e.keyCode
|
let key = e.keyCode
|
||||||
if (key === 59 && e.key === ';') {
|
if (key === 59 && (e.key === ';' || e.key === ':')) {
|
||||||
key = 186
|
key = 186
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key === 61 && e.key === '=') {
|
if (key === 61 && (e.key === '=' || e.key === '+')) {
|
||||||
key = 187
|
key = 187
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key === 173 && e.key === '-') {
|
if (key === 173 && (e.key === '-' || e.key === '_')) {
|
||||||
key = 189
|
key = 189
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user