This commit is contained in:
antelle 2019-09-19 18:28:55 +02:00
parent 0367966ae6
commit 8e30d99e94
3 changed files with 5 additions and 5 deletions

View File

@ -225,7 +225,7 @@ const AutoType = {
const entries = evt.filter.getEntries();
if (entries.length === 1 && AppSettingsModel.directAutotype) {
this.hideWindow(() => {
this.runAndHandleResult({ entry: entries.at(0) });
this.runAndHandleResult({ entry: entries[0] });
});
return;
}

View File

@ -145,7 +145,7 @@ class AutoTypeSelectView extends View {
e.preventDefault();
const activeIndex = this.entries.indexOf(this.result) - 1;
if (activeIndex >= 0) {
this.result = this.entries.at(activeIndex);
this.result = this.entries[activeIndex];
this.highlightActive();
}
}
@ -154,7 +154,7 @@ class AutoTypeSelectView extends View {
e.preventDefault();
const activeIndex = this.entries.indexOf(this.result) + 1;
if (activeIndex < this.entries.length) {
this.result = this.entries.at(activeIndex);
this.result = this.entries[activeIndex];
this.highlightActive();
}
}

View File

@ -152,14 +152,14 @@ class ListView extends View {
selectPrev() {
const ix = this.items.indexOf(this.items.get(this.model.activeEntryId));
if (ix > 0) {
this.selectItem(this.items.at(ix - 1));
this.selectItem(this.items[ix - 1]);
}
}
selectNext() {
const ix = this.items.indexOf(this.items.get(this.model.activeEntryId));
if (ix < this.items.length - 1) {
this.selectItem(this.items.at(ix + 1));
this.selectItem(this.items[ix + 1]);
}
}