From c84d13c2fe1cf9ea6a222f0b209ec64cbbfad8d6 Mon Sep 17 00:00:00 2001 From: Jack Date: Thu, 16 Jul 2020 22:40:45 +0100 Subject: [PATCH] fixed spacebar not workign --- public/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/script.js b/public/js/script.js index 5c3a2bd03..c3affaba6 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -2569,7 +2569,7 @@ $(document).keydown((event) => { updateCaretPosition(); } //space - if (event["keyCode"] == 32) { + if (event["keyCode"] == 32 || event.key === " ") { if (!testActive) return; if (currentInput == "") return; event.preventDefault();