mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-24 01:06:20 +08:00
ignoring events when loading. closes #2109
This commit is contained in:
parent
9f5bb64aee
commit
7f2d5b7465
|
@ -629,6 +629,8 @@ function handleTab(event) {
|
|||
}
|
||||
|
||||
$(document).keydown((event) => {
|
||||
if ($(".pageLoading").hasClass("active")) return event.preventDefault();
|
||||
|
||||
//autofocus
|
||||
const wordsFocused = $("#wordsInput").is(":focus");
|
||||
const pageTestActive = !$(".pageTest").hasClass("hidden");
|
||||
|
|
Loading…
Reference in a new issue