X-Git-Url: http://git.scottworley.com/vopamoi/blobdiff_plain/09657615b47a9634b20a1ab5abf2172d1575f56c..615358984666136f37c15c87b78ab96b541d60bf:/vopamoi.ts?ds=sidebyside 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) {