shift enter can now be used to bail out of infinite tests

This commit is contained in:
Miodec 2021-02-17 17:46:13 +00:00
parent 102ba28352
commit 662b76c74f

View file

@ -5568,6 +5568,14 @@ function handleAlpha(event) {
if (event.shiftKey && config.mode == "zen") {
showResult();
}
if (
event.shiftKey &&
((config.mode == "time" && config.time === 0) ||
(config.mode == "words" && config.words === 0))
) {
bailout = true;
showResult();
}
event.key = "\n";
}