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:
12
main/ipc.js
12
main/ipc.js
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user