mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-12 20:18:41 -09:00
menu: make Window more standard (#38)
This commit is contained in:
parent
a7a95b3312
commit
804b97bf14
1 changed files with 21 additions and 9 deletions
30
menu.js
30
menu.js
|
|
@ -114,12 +114,6 @@ module.exports = function createMenu ({ createWindow }) {
|
|||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
role: 'togglefullscreen'
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: 'Actual Size',
|
||||
accelerator: 'CmdOrCtrl+0',
|
||||
|
|
@ -153,7 +147,16 @@ module.exports = function createMenu ({ createWindow }) {
|
|||
label: 'Window',
|
||||
submenu: [
|
||||
{
|
||||
label: 'Select Previous Tab',
|
||||
role: 'minimize'
|
||||
},
|
||||
{
|
||||
role: 'close'
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
label: 'Show Previous Tab',
|
||||
accelerator: 'CmdOrCtrl+Left',
|
||||
click (item, focusedWindow) {
|
||||
if (focusedWindow) {
|
||||
|
|
@ -162,14 +165,23 @@ module.exports = function createMenu ({ createWindow }) {
|
|||
}
|
||||
},
|
||||
{
|
||||
label: 'Select Next Tab',
|
||||
label: 'Show Next Tab',
|
||||
accelerator: 'CmdOrCtrl+Right',
|
||||
click (item, focusedWindow) {
|
||||
if (focusedWindow) {
|
||||
focusedWindow.rpc.emit('move right');
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'separator'
|
||||
},
|
||||
{
|
||||
role: 'front'
|
||||
},
|
||||
{
|
||||
role: 'togglefullscreen'
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue