fixed a bug where the caret would blink during the test

This commit is contained in:
Jack 2020-08-24 18:11:24 +01:00
parent 159b9634d5
commit f4b75e42bf

View file

@ -288,7 +288,11 @@ function setFocus(foc) {
$("#middle").addClass("focus");
} else if (!foc && focusState) {
focusState = false;
startCaretAnimation();
if (testActive) {
stopCaretAnimation();
} else {
startCaretAnimation();
}
$("#top").removeClass("focus");
$("#bottom").removeClass("focus");
$("body").css("cursor", "default");