mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-05 05:17:51 +08:00
blocking arrows when not in arrows mode
This commit is contained in:
parent
924d0c6a4f
commit
4f1e6b2285
1 changed files with 5 additions and 0 deletions
|
@ -719,6 +719,11 @@ $(document).keydown((event) => {
|
|||
}
|
||||
}
|
||||
|
||||
if (Config.funbox !== "arrows" && /Arrow/i.test(event.key)) {
|
||||
event.preventDefault();
|
||||
return;
|
||||
}
|
||||
|
||||
Monkey.type();
|
||||
|
||||
if (event.key === "Backspace" && TestLogic.input.current.length === 0) {
|
||||
|
|
Loading…
Reference in a new issue