From: Scott Worley Date: Sun, 30 Jan 2022 00:53:24 +0000 (-0800) Subject: Scroll to top when entering a new task X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/a1aa43d897067989508bdf46e178cb27fc7464a1?ds=inline;hp=acd6b66a4b477803c65ffac202b44f5511d3f5d3 Scroll to top when entering a new task --- diff --git a/vopamoi.ts b/vopamoi.ts index 73fc5d9..3b0b470 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -359,6 +359,7 @@ function BrowserUI() { taskFocusedBeforeJumpingToInput = document.activeElement; } document.getElementById("taskName")!.focus(); + window.scroll(0, 0); event.preventDefault(); },