From fdb492c572a6727c9e9182d2c15c5419e7812783 Mon Sep 17 00:00:00 2001 From: antelle Date: Wed, 28 Apr 2021 08:25:18 +0200 Subject: [PATCH] don't prevent closing main window during auto-type --- app/scripts/views/auto-type/auto-type-select-view.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/scripts/views/auto-type/auto-type-select-view.js b/app/scripts/views/auto-type/auto-type-select-view.js index 80a9e0dd..c81cba1a 100644 --- a/app/scripts/views/auto-type/auto-type-select-view.js +++ b/app/scripts/views/auto-type/auto-type-select-view.js @@ -32,7 +32,6 @@ class AutoTypeSelectView extends View { constructor(model) { super(model); this.initScroll(); - this.listenTo(Events, 'main-window-will-close', this.mainWindowWillClose); this.listenTo(Events, 'keypress:auto-type', this.keyPressed); this.setupKeys(); } @@ -216,10 +215,6 @@ class AutoTypeSelectView extends View { this.showItemOptions(itemEl, e); } - mainWindowWillClose(e) { - e.preventDefault(); - } - showItemOptions(itemEl, event) { if (event) { event.stopImmediatePropagation();