temp: remove global shortcut to focusSearch

resolves #402
This commit is contained in:
Kyle Spearrin 2020-03-11 09:56:51 -04:00
parent 39178bd05d
commit e8c03e30ba
1 changed files with 16 additions and 14 deletions

View File

@ -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) {