Move Escape keyboard shortcut to shortcuts.js
This commit is contained in:
@@ -57,6 +57,7 @@ function toggleDevTools () {
|
||||
}
|
||||
|
||||
function showWebTorrentWindow () {
|
||||
log('showWebTorrentWindow')
|
||||
windows.webtorrent.show()
|
||||
windows.webtorrent.webContents.openDevTools({ detach: true })
|
||||
}
|
||||
|
||||
@@ -13,9 +13,13 @@ var menu = require('./menu')
|
||||
var windows = require('./windows')
|
||||
|
||||
function init () {
|
||||
// Register alternate shortcuts here. Most shortcuts are registered in menu,js, but Electron does not support multiple shortcuts for a single menu item.
|
||||
// Alternate shortcuts. Most shortcuts are registered in menu,js, but Electron does not
|
||||
// support multiple shortcuts for a single menu item.
|
||||
localShortcut.register('CmdOrCtrl+Shift+F', menu.toggleFullScreen)
|
||||
localShortcut.register('Space', () => windows.main.send('dispatch', 'playPause'))
|
||||
|
||||
// Hidden shortcuts, i.e. not shown in the menu
|
||||
localShortcut.register('Esc', () => windows.main.send('dispatch', 'escapeBack'))
|
||||
}
|
||||
|
||||
function onPlayerOpen () {
|
||||
|
||||
Reference in New Issue
Block a user