shortcut order

This commit is contained in:
Feross Aboukhadijeh
2016-03-09 15:05:39 -08:00
parent c176e3897a
commit e7d837e813

View File

@@ -7,11 +7,11 @@ var globalShortcut = electron.globalShortcut
var localShortcut = require('electron-localshortcut')
function init (menu, windows) {
// Special "media key" for play/pause, available on some keyboards
globalShortcut.register('MediaPlayPause', () => windows.main.send('dispatch', 'playPause'))
// ⌘+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)
// Special "media key" for play/pause, available on some keyboards
globalShortcut.register('MediaPlayPause', () => windows.main.send('dispatch', 'playPause'))
}