From: Scott Worley Date: Sat, 21 Oct 2023 22:14:33 +0000 (-0700) Subject: Change keystroke for cancel: c → C X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/6281964848ac1e51c70b879e2951daf664afaeb4?hp=f9aba985b1f9e1a7b76e2f2e605ee34bd23f153d Change keystroke for cancel: c → C --- diff --git a/vopamoi.ts b/vopamoi.ts index f37ce2e..f039b8c 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -749,7 +749,7 @@ function handleKey(event: any) { if (event.key == "G") return browserUI.jumpCursor(inputCount ?? MAX_SAFE_INTEGER); if (event.key == "T") return browserUI.makeTopPriority(); if (event.key == "n") return browserUI.focusTaskNameInput(event); - if (event.key == "c") return browserUI.setState("cancelled"); + if (event.key == "C") return browserUI.setState("cancelled"); if (event.key == "d") return browserUI.setState("done"); if (event.key == "q") return browserUI.setState("todo"); if (event.key == "s") return (inputState = InputState.S); @@ -772,7 +772,7 @@ function handleKey(event: any) { } else if (inputState === InputState.V) { inputState = InputState.Root; if (event.key == "a") return browserUI.setView("all"); - if (event.key == "c") return browserUI.setView("cancelled"); + if (event.key == "C") return browserUI.setView("cancelled"); if (event.key == "d") return browserUI.setView("done"); if (event.key == "i") return browserUI.setUntaggedView(); if (event.key == "p") return browserUI.setTagView("Project");