mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-30 02:39:05 +08:00
stopping quick restart from working on long tests
This commit is contained in:
parent
6ad0610462
commit
cd1697bfc5
2 changed files with 6 additions and 1 deletions
|
|
@ -69,7 +69,11 @@ function handleTab(event) {
|
|||
) {
|
||||
//ignore
|
||||
} else {
|
||||
if (event.shiftKey) ManualRestart.set();
|
||||
if (event.shiftKey) {
|
||||
ManualRestart.set();
|
||||
} else {
|
||||
ManualRestart.reset();
|
||||
}
|
||||
event.preventDefault();
|
||||
if (
|
||||
TestLogic.active &&
|
||||
|
|
|
|||
|
|
@ -989,6 +989,7 @@ $("#wordsInput").on("focusout", () => {
|
|||
|
||||
$(document).on("keypress", "#restartTestButton", (event) => {
|
||||
if (event.keyCode == 13) {
|
||||
ManualRestart.reset();
|
||||
if (
|
||||
TestLogic.active &&
|
||||
Config.repeatQuotes === "typing" &&
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue