mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
Add window zoom menu item (#325)
* Move window close button into shell submenu IMO actions that affect a session don't belong into the window menu. * Add window zoom menu item fixes #234
This commit is contained in:
parent
3b08c68d97
commit
f1facf4a32
1 changed files with 6 additions and 1 deletions
7
menu.js
7
menu.js
|
|
@ -87,6 +87,11 @@ module.exports = function createMenu ({ createWindow, updatePlugins }) {
|
|||
focusedWindow.rpc.emit('session close req');
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Close Terminal Window',
|
||||
role: 'close',
|
||||
accelerator: 'CmdOrCtrl+Shift+W',
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
@ -209,7 +214,7 @@ module.exports = function createMenu ({ createWindow, updatePlugins }) {
|
|||
role: 'minimize'
|
||||
},
|
||||
{
|
||||
role: 'close'
|
||||
role: 'zoom'
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
|
|
|
|||
Loading…
Reference in a new issue