Browse Source

feat: support exit by press `x`

master 1.1.2
kdxcxs 4 years ago
parent
commit
5df49121ed
  1. 8
      src/main.js

8
src/main.js

@ -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)
Loading…
Cancel
Save