From: Scott Worley Date: Wed, 26 Jan 2022 07:54:34 +0000 (-0800) Subject: Leave something focused after destroying a task X-Git-Url: http://git.scottworley.com/vopamoi/commitdiff_plain/615358984666136f37c15c87b78ab96b541d60bf Leave something focused after destroying a task --- diff --git a/vopamoi.ts b/vopamoi.ts index 56c4813..151c5e0 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -96,7 +96,8 @@ const BrowserUI = { destroyTask: function () { const createTimestamp = document.activeElement?.getAttribute("data-created"); - return createTimestamp && UI.destroyTask(createTimestamp); + this.moveCursor(1) || this.moveCursor(-1); + return UI.destroyTask(createTimestamp!); }, focusTaskNameInput: function (event: any) {