Keyboard shortcuts: volume shortcuts should be local

`globalShortcut` will register the shortcut at the OS level, even when
the app is not focused.

Using `localShortcut` would work, but let's put it in the top menu
instead, where all the other shortcuts are.
This commit is contained in:
Feross Aboukhadijeh
2016-03-26 19:57:39 -07:00
parent 0cf89600c0
commit 9ef1d0a605
4 changed files with 64 additions and 27 deletions

View File

@@ -23,13 +23,8 @@ function init () {
app.emit('ipcReady')
})
ipcMain.on('showOpenTorrentFile', function (e) {
menu.showOpenTorrentFile()
})
ipcMain.on('showCreateTorrent', function (e) {
menu.showCreateTorrent()
})
ipcMain.on('showOpenTorrentFile', menu.showOpenTorrentFile)
ipcMain.on('showCreateTorrent', menu.showCreateTorrent)
ipcMain.on('setBounds', function (e, bounds, maximize) {
setBounds(bounds, maximize)
@@ -62,6 +57,9 @@ function init () {
ipcMain.on('blockPowerSave', blockPowerSave)
ipcMain.on('unblockPowerSave', unblockPowerSave)
ipcMain.on('onPlayerOpen', menu.onPlayerOpen)
ipcMain.on('onPlayerClose', menu.onPlayerClose)
}
function setBounds (bounds, maximize) {