|
|
@ -21,15 +21,9 @@ function createWindow() { |
|
|
|
|
|
|
|
function init() { |
|
|
|
const win = createWindow() |
|
|
|
globalShortcut.register('alt+x', () => { |
|
|
|
globalShortcut.register('x', () => { |
|
|
|
app.exit(0) |
|
|
|
}) |
|
|
|
// globalShortcut.register('ctrl+j', () => {
|
|
|
|
// win.webContents.executeJavaScript(`impress("impress").next()`)
|
|
|
|
// })
|
|
|
|
// globalShortcut.register('ctrl+k', () => {
|
|
|
|
// win.webContents.executeJavaScript(`impress("impress").prev()`)
|
|
|
|
// })
|
|
|
|
} |
|
|
|
|
|
|
|
app.whenReady().then(init) |