From 324d9bbc1812a2420fa9e05cfea4cdd54e647313 Mon Sep 17 00:00:00 2001 From: Jack Date: Sun, 20 Dec 2020 23:39:54 +0000 Subject: [PATCH] fixed auto focus and disbled quick end with stop on error --- src/js/script.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/js/script.js b/src/js/script.js index 5049116f4..faa9982f0 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -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;