Skip to content

Commit 541f29c

Browse files
committed
fix: shift enter not inserting a newline character
1 parent e74ed0e commit 541f29c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

frontend/src/ts/controllers/input-controller.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1113,6 +1113,10 @@ $(document).on("keydown", async (event) => {
11131113
TestState.setBailedOut(true);
11141114
void TestLogic.finish();
11151115
}
1116+
} else {
1117+
await handleChar("\n", TestInput.input.current.length);
1118+
setWordsInput(" " + TestInput.input.current);
1119+
updateUI();
11161120
}
11171121
} else {
11181122
await handleChar("\n", TestInput.input.current.length);

0 commit comments

Comments
 (0)