return valid_cursor;
},
- makeTopPriority: function (task: Element) {
+ makeTopPriority: function (task: Element | null = null) {
+ if (!task) task = document.activeElement;
+ if (!task) return;
this.setPriority(task, null, document.getElementsByClassName("task")[0]);
},
if (event.key == "k") return browserUI.moveCursor(-1);
if (event.key == "J") return browserUI.moveTask(1);
if (event.key == "K") return browserUI.moveTask(-1);
+ 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 == "d") return browserUI.setState("done");