From 7f2d5b7465577d53f5ca939c9e168e26f627677d Mon Sep 17 00:00:00 2001 From: Jack Date: Tue, 23 Nov 2021 14:56:55 +0000 Subject: [PATCH] ignoring events when loading. closes #2109 --- src/js/input-controller.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/js/input-controller.js b/src/js/input-controller.js index c55f31665..27562c508 100644 --- a/src/js/input-controller.js +++ b/src/js/input-controller.js @@ -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");