task instanceof HTMLElement && task.focus();
},
+ moveCursorLeft: function () {
+ const active = this.currentTask();
+ if (!active) return false;
+ if (active.parentElement!.classList.contains("task")) {
+ active.parentElement!.focus();
+ }
+ },
+
+ moveCursorRight: function () {
+ (this.currentTask()?.getElementsByClassName("task")[0] as HTMLElement)?.focus();
+ },
+
moveCursorVertically: function (offset: number): boolean {
const active = this.currentTask();
if (!active) return false;
if (event.key == "e") return window.scrollBy(0, (inputCount ?? 1) * scrollIncrement);
if (event.key == "y") return window.scrollBy(0, (inputCount ?? 1) * -scrollIncrement);
} else {
+ if (event.key == "h") return browserUI.moveCursorLeft();
+ if (event.key == "l") return browserUI.moveCursorRight();
if (event.key == "j") return browserUI.moveCursorVertically(inputCount ?? 1);
if (event.key == "k") return browserUI.moveCursorVertically(-(inputCount ?? 1));
if (event.key == "J") return browserUI.moveTask(inputCount ?? 1);