From: Scott Worley Date: Tue, 25 Jan 2022 22:29:23 +0000 (-0800) Subject: "c" to "Create" tasks X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/75a42da4667eceebea699c52d85fa4b7c3e6a0bc?hp=f69ff5261a6e77cfba0daf8eb4c164d0c57c2602 "c" to "Create" tasks --- diff --git a/index.html b/index.html index 5ed2498..afb9231 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@
- +
diff --git a/vopamoi.ts b/vopamoi.ts index 2567e85..8db2865 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -26,6 +26,10 @@ function handleKey(event: any) { if (event.target.tagName !== "INPUT") { if (event.key == "j") Model.moveCursor(1); if (event.key == "k") Model.moveCursor(-1); + if (event.key == "c") { + document.getElementById("taskName")!.focus(); + event.preventDefault(); + } } }