stopping quick restart from working on long tests

This commit is contained in:
Miodec 2021-08-06 14:25:25 +01:00
parent 6ad0610462
commit cd1697bfc5
2 changed files with 6 additions and 1 deletions

View file

@ -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 &&

View file

@ -989,6 +989,7 @@ $("#wordsInput").on("focusout", () => {
$(document).on("keypress", "#restartTestButton", (event) => {
if (event.keyCode == 13) {
ManualRestart.reset();
if (
TestLogic.active &&
Config.repeatQuotes === "typing" &&