document.body.appendChild(this.createTask(timestamp, description)).focus();
},
- moveCursor: function (offset: number) {
+ moveCursor: function (offset: number): boolean {
var active = document.activeElement;
if (offset === 1 && active) {
active = active.nextElementSibling;
if (offset === -1 && active) {
active = active.previousElementSibling;
}
- if (active && active instanceof HTMLElement) active.focus();
+ if (active && active instanceof HTMLElement) {
+ active.focus();
+ return true;
+ }
+ return false;
},
};