Merge pull request #612 from wvds/GH-512

Add Ctrl(+Shift)+Tab as alternative to switch between servers
This commit is contained in:
Yuya Ochiai
2017-10-12 23:08:20 +09:00
committed by GitHub
2 changed files with 17 additions and 2 deletions

View File

@@ -187,14 +187,14 @@ function createTemplate(mainWindow, config, isDev) {
};
}), separatorItem, {
label: 'Select Next Server',
accelerator: (process.platform === 'darwin') ? 'Alt+Cmd+Right' : 'CmdOrCtrl+Tab',
accelerator: 'Ctrl+Tab',
click() {
mainWindow.webContents.send('select-next-tab');
},
enabled: (config.teams.length > 1)
}, {
label: 'Select Previous Server',
accelerator: (process.platform === 'darwin') ? 'Alt+Cmd+Left' : 'CmdOrCtrl+Shift+Tab',
accelerator: 'Ctrl+Shift+Tab',
click() {
mainWindow.webContents.send('select-previous-tab');
},