mirror of
https://github.com/hyperspacedev/hyperspace
synced 2025-01-24 06:02:54 +01:00
Move place-related shortcuts in Places menu (#73)
Signed-off-by: Marquis Kurt <software@marquiskurt.net>
This commit is contained in:
parent
b47765420d
commit
f3768199a0
@ -284,11 +284,8 @@ function createMenubar() {
|
||||
]
|
||||
},
|
||||
{
|
||||
role: 'window',
|
||||
label: "Places",
|
||||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'close' },
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: 'Home',
|
||||
accelerator: "CmdOrCtrl+0",
|
||||
@ -334,6 +331,14 @@ function createMenubar() {
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
role: 'window',
|
||||
submenu: [
|
||||
{ role: 'minimize' },
|
||||
{ role: 'close' },
|
||||
{ type: 'separator' },
|
||||
]
|
||||
},
|
||||
{
|
||||
role: 'help',
|
||||
submenu: [
|
||||
@ -396,55 +401,11 @@ function createMenubar() {
|
||||
)
|
||||
|
||||
// Window menu
|
||||
menuBar[4].submenu = [
|
||||
menuBar[5].submenu = [
|
||||
{ role: 'close' },
|
||||
{ role: 'minimize' },
|
||||
{ role: 'zoom' },
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: 'Home',
|
||||
accelerator: "CmdOrCtrl+0",
|
||||
click() {
|
||||
safelyGoTo("hyperspace://hyperspace/app/#/home")
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Local',
|
||||
accelerator: "CmdOrCtrl+1",
|
||||
click() {
|
||||
safelyGoTo("hyperspace://hyperspace/app/#/local")
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Public',
|
||||
accelerator: "CmdOrCtrl+2",
|
||||
click() {
|
||||
safelyGoTo("hyperspace://hyperspace/app/#/public")
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Recommended',
|
||||
accelerator: "CmdOrCtrl+3",
|
||||
click() {
|
||||
safelyGoTo("hyperspace://hyperspace/app/#/recommended")
|
||||
}
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{
|
||||
label: 'Notifications',
|
||||
accelerator: "CmdOrCtrl+4",
|
||||
click() {
|
||||
safelyGoTo("hyperspace://hyperspace/app/#/notifications")
|
||||
}
|
||||
},
|
||||
{
|
||||
label: 'Messages',
|
||||
accelerator: "CmdOrCtrl+5",
|
||||
click() {
|
||||
safelyGoTo("hyperspace://hyperspace/app/#/messages")
|
||||
}
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{ role: 'front' }
|
||||
]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user