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) {