mirror of https://github.com/keeweb/keeweb.git
This commit is contained in:
parent
0367966ae6
commit
8e30d99e94
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue