From: Scott Worley Date: Tue, 25 Jan 2022 22:28:35 +0000 (-0800) Subject: New tasks get focus. X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/f69ff5261a6e77cfba0daf8eb4c164d0c57c2602 New tasks get focus. --- diff --git a/vopamoi.ts b/vopamoi.ts index 1961dd9..2567e85 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -7,7 +7,7 @@ const Model = { }, addTask: function (description: string) { - document.body.appendChild(this.createTask(description)); + document.body.appendChild(this.createTask(description)).focus(); }, moveCursor: function (offset: number) {