mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 16:26:18 +08:00
shift enter can now be used to bail out of infinite tests
This commit is contained in:
parent
102ba28352
commit
662b76c74f
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue