fixed window blur during auto-type

This commit is contained in:
antelle 2021-04-27 21:38:31 +02:00
parent 2f4a9d450a
commit 1883b527a4
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
1 changed files with 7 additions and 0 deletions

View File

@ -27,6 +27,7 @@ const AutoType = {
return;
}
Events.on('auto-type', (e) => this.handleEvent(e));
Events.on('main-window-blur', (e) => this.mainWindowBlur(e));
},
handleEvent(e) {
@ -57,6 +58,12 @@ const AutoType = {
}
},
mainWindowBlur() {
if (this.selectEntryView) {
this.selectEntryView.emit('result', undefined);
}
},
runAndHandleResult(result, windowId) {
this.run(result, windowId, (err) => {
if (err) {