focus the text area after analyzing the save

This commit is contained in:
ReznoRMichael 2021-07-05 22:22:03 +02:00
commit a6e598a2cb
3 changed files with 12 additions and 3 deletions

View file

@ -237,6 +237,9 @@ function HKCheckCompletion(jsonObject) {
CheckboxHintsToggle();
CheckboxSpoilersToggle();
/* focus the text area after analyzing the save, without scrolling the document */
document.getElementById("save-area").focus({preventScroll: true});
// finish and show benchmark
benchHKCCEnd = new Date();
console.info("HKCheckCompletion() time (ms) =", benchHKCCEnd - benchHKCCBegin);