forked from tools/josh
1
0
Fork 0

Re-add focus request to ensure caret is present

Fixes #111.
This commit is contained in:
Florine W. Dekker 2020-03-19 18:51:50 +01:00
parent 3daa762571
commit 79b024d573
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
2 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,6 @@
{
"name": "fwdekker.com",
"version": "0.28.1",
"version": "0.28.2",
"description": "The source code of [my personal website](https://fwdekker.com/).",
"author": "Felix W. Dekker",
"repository": {

View File

@ -284,6 +284,7 @@ export class Terminal {
if ((document.getSelection() ?? "").toString() !== "")
return;
this.input.focus();
setTimeout(() => moveCaretToEndOf(this.input.firstChild), 0);
}