From dcccd11a29e4ce8da6298f34bb7837b23c51bdc9 Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Mon, 6 Nov 2017 15:22:40 +0100 Subject: [PATCH] Improved context menu (#2425) * Improved context menu * Fixed wrong wording * Update shell.js --- app/menus/menus/shell.js | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/menus/menus/shell.js b/app/menus/menus/shell.js index e78f7752..ba6224aa 100644 --- a/app/menus/menus/shell.js +++ b/app/menus/menus/shell.js @@ -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);