]> git.scottworley.com Git - vopamoi/commitdiff
New tasks get focus.
authorScott Worley <scottworley@scottworley.com>
Tue, 25 Jan 2022 22:28:35 +0000 (14:28 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 20:21:09 +0000 (12:21 -0800)
vopamoi.ts

index 1961dd995496a9fe6ecddb08f80b440435ef5f6d..2567e85e79ec5799bdb9b851a213b4a51f2d5bfc 100644 (file)
@@ -7,7 +7,7 @@ const Model = {
   },
 
   addTask: function (description: string) {
   },
 
   addTask: function (description: string) {
-    document.body.appendChild(this.createTask(description));
+    document.body.appendChild(this.createTask(description)).focus();
   },
 
   moveCursor: function (offset: number) {
   },
 
   moveCursor: function (offset: number) {