fix: prevent automatic double newline when quick restart set to enter (sanidhyas3s) (#5184)

Fixes #5175

Co-authored-by: Jack <jack@monkeytype.com>
This commit is contained in:
Sanidhya Singh 2024-03-05 16:14:13 +05:30 committed by GitHub
parent cc30f6357e
commit 2fb77a1693
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1008,7 +1008,6 @@ $(document).on("keydown", async (event) => {
event,
});
} else {
handleChar("\n", TestInput.input.current.length);
setWordsInput(" " + TestInput.input.current);
if (Config.tapeMode !== "off") {
TestUI.scrollTape();