]> git.scottworley.com Git - vopamoi/commitdiff
Scroll to top when entering a new task
authorScott Worley <scottworley@scottworley.com>
Sun, 30 Jan 2022 00:53:24 +0000 (16:53 -0800)
committerScott Worley <scottworley@scottworley.com>
Sun, 30 Jan 2022 00:53:24 +0000 (16:53 -0800)
vopamoi.ts

index 73fc5d90b5c81c0ea246dbcbfd163178abfe0bb3..3b0b470bf80e088ad4224788cea8792f0ffd8829 100644 (file)
@@ -359,6 +359,7 @@ function BrowserUI() {
         taskFocusedBeforeJumpingToInput = document.activeElement;
       }
       document.getElementById("taskName")!.focus();
+      window.scroll(0, 0);
       event.preventDefault();
     },