From b91fdd9a86c0619d24174e180472ae535ff15bcf Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Mon, 5 Sep 2022 00:29:44 +0900 Subject: [PATCH] refs #3573 Enable reload shortcut key --- src/main/index.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 63efc7e7..b2ba097d 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -14,8 +14,7 @@ import { Notification, NotificationConstructorOptions, nativeTheme, - IpcMainInvokeEvent, - globalShortcut + IpcMainInvokeEvent } from 'electron' import Datastore from 'nedb' import { isEmpty } from 'lodash' @@ -452,13 +451,6 @@ app.on('activate', () => { } }) -app.on('browser-window-focus', () => { - // Disable reload - globalShortcut.register('CommandOrControl+R', () => { - console.log('CommandOrControl+R is pressed: Shortcut Disabled') - }) -}) - const auth = new Authentication(accountRepo) type AuthRequest = {