Improved context menu (#2425)

* Improved context menu

* Fixed wrong wording

* Update shell.js
This commit is contained in:
Leo Lamprecht 2017-11-06 15:22:40 +01:00 committed by Timothy
parent 2002baf39c
commit dcccd11a29

View file

@ -4,13 +4,6 @@ module.exports = (commandKeys, execCommand) => {
return {
label: isMac ? 'Shell' : 'File',
submenu: [
{
label: 'New Window',
accelerator: commandKeys['window:new'],
click(item, focusedWindow) {
execCommand('window:new', focusedWindow);
}
},
{
label: 'New Tab',
accelerator: commandKeys['tab:new'],
@ -19,14 +12,14 @@ module.exports = (commandKeys, execCommand) => {
}
},
{
type: 'separator'
label: 'New Window',
accelerator: commandKeys['window:new'],
click(item, focusedWindow) {
execCommand('window:new', focusedWindow);
}
},
{
label: 'Split Vertically',
accelerator: commandKeys['pane:splitVertical'],
click(item, focusedWindow) {
execCommand('pane:splitVertical', focusedWindow);
}
type: 'separator'
},
{
label: 'Split Horizontally',
@ -35,11 +28,18 @@ module.exports = (commandKeys, execCommand) => {
execCommand('pane:splitHorizontal', focusedWindow);
}
},
{
label: 'Split Vertically',
accelerator: commandKeys['pane:splitVertical'],
click(item, focusedWindow) {
execCommand('pane:splitVertical', focusedWindow);
}
},
{
type: 'separator'
},
{
label: 'Close Session',
label: 'Close',
accelerator: commandKeys['pane:close'],
click(item, focusedWindow) {
execCommand('pane:close', focusedWindow);