mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 20:08:18 +08:00
avoiding typing any keys that are longer than 1
This commit is contained in:
parent
c888f30944
commit
836f96a30e
1 changed files with 2 additions and 0 deletions
|
@ -4549,10 +4549,12 @@ $(document).keydown(function (event) {
|
|||
"Symbol",
|
||||
"SymbolLock",
|
||||
"Super",
|
||||
"Unidentified",
|
||||
undefined,
|
||||
].includes(event.key)
|
||||
)
|
||||
return;
|
||||
if (event.key.length > 1) return;
|
||||
if (/F\d+/.test(event.key)) return;
|
||||
if (/Numpad/.test(event.key)) return;
|
||||
if (/Volume/.test(event.key)) return;
|
||||
|
|
Loading…
Reference in a new issue