fixed auto focus and disbled quick end with stop on error

This commit is contained in:
Jack 2020-12-20 23:39:54 +00:00
parent 8e080584c8
commit 324d9bbc18

View file

@ -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;