mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-11 16:37:27 +01:00
Merge pull request #3599 from h3poteto/iss-3573
refs #3573 Enable reload shortcut key
This commit is contained in:
commit
f52ff4bd3e
@ -14,8 +14,7 @@ import {
|
|||||||
Notification,
|
Notification,
|
||||||
NotificationConstructorOptions,
|
NotificationConstructorOptions,
|
||||||
nativeTheme,
|
nativeTheme,
|
||||||
IpcMainInvokeEvent,
|
IpcMainInvokeEvent
|
||||||
globalShortcut
|
|
||||||
} from 'electron'
|
} from 'electron'
|
||||||
import Datastore from 'nedb'
|
import Datastore from 'nedb'
|
||||||
import { isEmpty } from 'lodash'
|
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)
|
const auth = new Authentication(accountRepo)
|
||||||
|
|
||||||
type AuthRequest = {
|
type AuthRequest = {
|
||||||
|
Loading…
Reference in New Issue
Block a user