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