From 75a42da4667eceebea699c52d85fa4b7c3e6a0bc Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 25 Jan 2022 14:29:23 -0800 Subject: [PATCH] "c" to "Create" tasks --- index.html | 2 +- vopamoi.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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(); + } } } -- 2.44.1