mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-24 14:56:23 +08:00
fix: shift enter not inserting a newline character
This commit is contained in:
parent
e74ed0e4c1
commit
541f29ce94
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue