mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-11 00:03:44 +08:00
fixed auto focus and disbled quick end with stop on error
This commit is contained in:
parent
8e080584c8
commit
324d9bbc18
1 changed files with 8 additions and 2 deletions
|
@ -1123,7 +1123,9 @@ function compareInput(showError) {
|
|||
|
||||
if (
|
||||
(currentWord == input ||
|
||||
(config.quickEnd && currentWord.length == input.length)) &&
|
||||
(config.quickEnd &&
|
||||
currentWord.length == input.length &&
|
||||
config.stopOnError == "off")) &&
|
||||
lastindex == wordsList.length - 1
|
||||
) {
|
||||
inputHistory.push(input);
|
||||
|
@ -4875,7 +4877,11 @@ $(document).keydown(function (event) {
|
|||
let commandLineVisible = !$("#commandLineWrapper").hasClass("hidden");
|
||||
let wordsFocused = $("#wordsInput").is(":focus");
|
||||
|
||||
if (pageTestActive && !commandLineVisible) {
|
||||
let modePopupVisible =
|
||||
!$("#customTextPopupWrapper").hasClass("hidden") ||
|
||||
!$("#customMode2PopupWrapper").hasClass("hidden");
|
||||
|
||||
if (pageTestActive && !commandLineVisible && !modePopupVisible) {
|
||||
if (!wordsFocused) {
|
||||
focusWords();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue