mirror of https://github.com/keeweb/keeweb.git
fix window focus
This commit is contained in:
parent
2f0b16d40c
commit
15c5494658
|
@ -167,19 +167,24 @@ var AutoType = {
|
|||
this.pendingEvent = evt;
|
||||
this.appModel.files.once('update', this.processPendingEvent, this);
|
||||
logger.debug('auto-type event delayed');
|
||||
setTimeout(() => Launcher.showMainWindow(), Timeouts.RedrawInactiveWindow);
|
||||
this.focusMainWindow();
|
||||
} else {
|
||||
this.processEventWithFilter(evt);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
focusMainWindow() {
|
||||
setTimeout(() => Launcher.showMainWindow(), Timeouts.RedrawInactiveWindow);
|
||||
},
|
||||
|
||||
processEventWithFilter(evt) {
|
||||
let entries = evt.filter.getEntries();
|
||||
if (entries.length === 1) {
|
||||
this.runAndHandleResult(entries.at(0));
|
||||
return;
|
||||
}
|
||||
this.focusMainWindow();
|
||||
this.selectEntryView = new AutoTypeSelectView({
|
||||
model: { filter: evt.filter }
|
||||
}).render();
|
||||
|
|
Loading…
Reference in New Issue