From 541f29ce94d853a84e9c2c196fba9e133e379ac5 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sun, 10 Aug 2025 16:06:53 +0200 Subject: [PATCH] fix: shift enter not inserting a newline character --- frontend/src/ts/controllers/input-controller.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/ts/controllers/input-controller.ts b/frontend/src/ts/controllers/input-controller.ts index 183de6d59..59c67205f 100644 --- a/frontend/src/ts/controllers/input-controller.ts +++ b/frontend/src/ts/controllers/input-controller.ts @@ -1113,6 +1113,10 @@ $(document).on("keydown", async (event) => { TestState.setBailedOut(true); void TestLogic.finish(); } + } else { + await handleChar("\n", TestInput.input.current.length); + setWordsInput(" " + TestInput.input.current); + updateUI(); } } else { await handleChar("\n", TestInput.input.current.length);