Better solution for #501

This commit is contained in:
the-djmaze 2022-11-16 15:48:02 +01:00
parent 10e36e96b6
commit ff81aa6abc

View file

@ -493,7 +493,12 @@ class SquireUI
}
focus() {
('plain' == this.mode ? this.plain : this.squire).focus();
if ('plain' == this.mode) {
this.plain.focus();
this.plain.setSelectionRange(0, 0);
} else {
this.squire.focus();
}
}
}