The ‘clipboard’ module works in the renderer without using the ’remote’ package. So we can eliminate one IPC call this way :)
13 lines
392 B
JavaScript
13 lines
392 B
JavaScript
module.exports = {
|
|
init: init
|
|
}
|
|
|
|
var localShortcut = require('electron-localshortcut')
|
|
|
|
function init (menu) {
|
|
// ⌘+Shift+F is an alternative fullscreen shortcut to the ones 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)
|
|
}
|