UNPKG

quickbuild

Version:

A mature, feature-complete application generator with an emphasis on speed

17 lines (14 loc) 392 B
const {app, dialog, globalShortcut} = require('electron') app.on('ready', () => { globalShortcut.register('CommandOrControl+Alt+K', () => { dialog.showMessageBox({ type: 'info', message: 'Success!', detail: 'You pressed the registered global shortcut keybinding.', buttons: ['OK'] }) }) }) app.on('will-quit', () => { globalShortcut.unregisterAll() })