]> git.scottworley.com Git - vopamoi/commitdiff
Leave something focused after destroying a task
authorScott Worley <scottworley@scottworley.com>
Wed, 26 Jan 2022 07:54:34 +0000 (23:54 -0800)
committerScott Worley <scottworley@scottworley.com>
Thu, 27 Jan 2022 20:21:55 +0000 (12:21 -0800)
vopamoi.ts

index 56c4813923e46b600d6ab561f6bdb36b16fa0b7d..151c5e06103d8e8f68791350c0361c56fe5f9fdf 100644 (file)
@@ -96,7 +96,8 @@ const BrowserUI = {
 
   destroyTask: function () {
     const createTimestamp = document.activeElement?.getAttribute("data-created");
 
   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) {
   },
 
   focusTaskNameInput: function (event: any) {