mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-25 06:05:52 +02:00
Fix/Improve linting
This commit is contained in:
@@ -14,8 +14,12 @@ function allowKey(key: number) {
|
||||
|
||||
function fixKeyCode(key: number) {
|
||||
if (firefox) {
|
||||
if (key === 173) return Key.DASH;
|
||||
if (key === 61) return Key.EQUALS;
|
||||
if (key === 173) {
|
||||
return Key.DASH;
|
||||
}
|
||||
if (key === 61) {
|
||||
return Key.EQUALS;
|
||||
}
|
||||
}
|
||||
|
||||
return key;
|
||||
|
||||
Reference in New Issue
Block a user