Files
webtorrent-desktop/main/shortcuts.js
Feross Aboukhadijeh beca43029d standard
2016-03-05 17:25:22 -08:00

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