Merge pull request #202 from grunjol/feature-volume-management-clean

Add volume management
This commit is contained in:
Feross Aboukhadijeh
2016-03-25 23:46:59 -07:00
4 changed files with 46 additions and 0 deletions

View File

@@ -18,4 +18,8 @@ function init () {
// Electron does not support multiple accelerators for a single menu item, so this
// is registered separately here.
localShortcut.register('CmdOrCtrl+Shift+F', menu.toggleFullScreen)
// Control Volume
globalShortcut.register('CmdOrCtrl+Up', () => windows.main.send('dispatch', 'changeVolume', 0.1))
globalShortcut.register('CmdOrCtrl+Down', () => windows.main.send('dispatch', 'changeVolume', -0.1))
}