From d115a8d72d92ad68ae72f94747cea261d22122ff Mon Sep 17 00:00:00 2001 From: Miodec Date: Tue, 11 Apr 2023 17:44:09 +0200 Subject: [PATCH] more logs in spacing debug --- frontend/src/ts/controllers/input-controller.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index d630fd99d..3e6e425ed 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -965,6 +965,11 @@ $(document).keydown(async (event) => { $("#wordsInput").keydown((event) => { if (event.originalEvent?.repeat) return; + + if (TestInput.spacingDebug) { + console.log("spacing debug keydown", event.key, event.code, event.which); + } + const now = performance.now(); setTimeout(() => { const isAndroid = @@ -975,6 +980,11 @@ $("#wordsInput").keydown((event) => { $("#wordsInput").keyup((event) => { if (event.originalEvent?.repeat) return; + + if (TestInput.spacingDebug) { + console.log("spacing debug keyup", event.key, event.code, event.which); + } + const now = performance.now(); setTimeout(() => { const isAndroid =