Files
webtorrent-desktop/main/shortcuts.js
Feross Aboukhadijeh 56536ad55e Move paste to renderer
The ‘clipboard’ module works in the renderer without using the ’remote’
package. So we can eliminate one IPC call this way :)
2016-03-08 21:06:20 -08:00

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)
}