From e8c03e30ba27cbf8cc4d99377745141178e48305 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 11 Mar 2020 09:56:51 -0400 Subject: [PATCH] temp: remove global shortcut to focusSearch resolves #402 --- src/main.ts | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/src/main.ts b/src/main.ts index c68e341c34..ec0d14401c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -44,23 +44,25 @@ export class Main { } app.on('ready', () => { - globalShortcut.register('CommandOrControl+Shift+L', async () => { - if (this.windowMain.win === null) { - await this.windowMain.createWindow(); - } + /* + globalShortcut.register('CommandOrControl+Shift+L', async () => { + if (this.windowMain.win === null) { + await this.windowMain.createWindow(); + } - this.messagingService.send('focusSearch'); - this.windowMain.win.show(); - }); + this.messagingService.send('focusSearch'); + this.windowMain.win.show(); + }); + */ - globalShortcut.register('CommandOrControl+Shift+G', async () => { - if (this.windowMain.win === null) { - await this.windowMain.createWindow(); - } + globalShortcut.register('CommandOrControl+Shift+G', async () => { + if (this.windowMain.win === null) { + await this.windowMain.createWindow(); + } - this.messagingService.send('openPasswordGenerator'); - this.windowMain.win.show(); - }); + this.messagingService.send('openPasswordGenerator'); + this.windowMain.win.show(); + }); }); if (appDataPath != null) {