]> git.scottworley.com Git - vopamoi/blobdiff - vopamoi.ts
Scroll to top when entering a new task
[vopamoi] / 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();
     },