X-Git-Url: http://git.scottworley.com/vopamoi/blobdiff_plain/4ccaa1d6e256ca198e0d15e5b51553edb063f3bf..792b8a180ea729fd3cbfffaa915c6df9041e391d:/vopamoi.ts diff --git a/vopamoi.ts b/vopamoi.ts index fe97410..ede5911 100644 --- a/vopamoi.ts +++ b/vopamoi.ts @@ -262,7 +262,7 @@ function BrowserUI() { } input.value = ""; if (event.getModifierState("Control")) { - this.setPriority(task, null, document.getElementsByClassName("task")[0]); + this.makeTopPriority(task); } }, @@ -356,6 +356,10 @@ function BrowserUI() { return valid_cursor; }, + makeTopPriority: function (task: Element) { + this.setPriority(task, null, document.getElementsByClassName("task")[0]); + }, + moveCursor: function (offset: number): boolean { const active = document.activeElement; if (!active) return false;