Merge pull request #3599 from h3poteto/iss-3573

refs #3573 Enable reload shortcut key
This commit is contained in:
AkiraFukushima 2022-09-05 00:35:20 +09:00 committed by GitHub
commit f52ff4bd3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 9 deletions

View File

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