mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Improved context menu (#2425)
* Improved context menu * Fixed wrong wording * Update shell.js
This commit is contained in:
parent
2002baf39c
commit
dcccd11a29
1 changed files with 14 additions and 14 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue