13 lines
391 B
JavaScript
13 lines
391 B
JavaScript
module.exports = {
|
|
init: init
|
|
}
|
|
|
|
var localShortcut = require('electron-localshortcut')
|
|
|
|
function init (menu) {
|
|
// ⌘+Shift+F is an alternative fullscreen shortcut to the one defined in menu.js.
|
|
// Electron does not support multiple accelerators for a single menu item, so this
|
|
// is registered separately here.
|
|
localShortcut.register('CmdOrCtrl+Shift+F', menu.toggleFullScreen)
|
|
}
|