1
0
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:
Marquis Kurt 2019-09-17 17:33:05 -04:00
parent b47765420d
commit f3768199a0
No known key found for this signature in database
GPG Key ID: 725636D259F5402D

View File

@ -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' }
]
}