Skip to content

Commit d83ba5d

Browse files
authored
Merge pull request RocketChat#670 from cmrd-senya/50-alt-shift-fixup
[FIX] Add & to menu items to avoid alt-shift menu popup
2 parents 5a74269 + 9fefb50 commit d83ba5d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/scripts/menus.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,29 @@ document.title = APP_NAME;
1818

1919
const menuTemplate = [
2020
{
21-
label: APP_NAME,
21+
label: '&' + APP_NAME,
2222
submenu: appMenu
2323
},
2424
{
25-
label: i18n.__('Edit'),
25+
label: '&' + i18n.__('Edit'),
2626
submenu: editMenu
2727
},
2828
{
29-
label: i18n.__('View'),
29+
label: '&' + i18n.__('View'),
3030
submenu: viewMenu
3131
},
3232
{
33-
label: i18n.__('History'),
33+
label: '&' + i18n.__('History'),
3434
submenu: historyMenu
3535
},
3636
{
37-
label: i18n.__('Window'),
37+
label: '&' + i18n.__('Window'),
3838
id: 'window',
3939
role: 'window',
4040
submenu: windowMenu
4141
},
4242
{
43-
label: i18n.__('Help'),
43+
label: '&' + i18n.__('Help'),
4444
role: 'help',
4545
submenu: helpMenu
4646
}
@@ -56,7 +56,7 @@ function addServer (host, position) {
5656
windowMenu[index].visible = true;
5757

5858
const menuItem = {
59-
label: host.title,
59+
label: '&' + host.title,
6060
accelerator: `CmdOrCtrl+ ${position}`,
6161
position: 'before=server-list-separator',
6262
id: host.url,

0 commit comments

Comments
 (0)