From 1883b527a434d9b1972fc3d9bb4645ad8c57c486 Mon Sep 17 00:00:00 2001 From: antelle Date: Tue, 27 Apr 2021 21:38:31 +0200 Subject: [PATCH] fixed window blur during auto-type --- app/scripts/auto-type/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/scripts/auto-type/index.js b/app/scripts/auto-type/index.js index d7822513..e02fac90 100644 --- a/app/scripts/auto-type/index.js +++ b/app/scripts/auto-type/index.js @@ -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) {