mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 05:03:39 +08:00
limited word length to 30 in zen mode. should fix #1316
This commit is contained in:
parent
633cc2bf77
commit
a59441fb06
1 changed files with 3 additions and 3 deletions
|
|
@ -625,10 +625,10 @@ function handleAlpha(event) {
|
|||
TestUI.setActiveWordTop(document.querySelector("#words .active").offsetTop);
|
||||
}
|
||||
|
||||
//max length of the input is 20 unless in zen mode
|
||||
//max length of the input is 20 unless in zen mode then its 30
|
||||
if (
|
||||
Config.mode == "zen" ||
|
||||
TestLogic.input.current.length < TestLogic.words.getCurrent().length + 20
|
||||
(Config.mode == "zen" && TestLogic.input.current.length < 30) ||
|
||||
(Config.mode !== "zen" && TestLogic.input.current.length < TestLogic.words.getCurrent().length + 20)
|
||||
) {
|
||||
TestLogic.input.appendCurrent(event["key"]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue