linux: Fix ALT+SHIFT opening menu items on Linux.

It's an upstream bug where if you press ALT+SHIFT on
Linux, it opens up the app menu items. The fix is adding
the & to all the menu labels.

Fixes: #528.
This commit is contained in:
Akash Nimare
2018-09-13 13:13:18 +05:30
parent 86e3d06e52
commit 10cd7850ca

View File

@@ -320,7 +320,7 @@ class AppMenu {
const { tabs, activeTabIndex } = props;
return [{
label: 'File',
label: '&File',
submenu: [{
label: 'About Zulip',
click(item, focusedWindow) {
@@ -383,7 +383,7 @@ class AppMenu {
accelerator: 'Ctrl+Q'
}]
}, {
label: 'Edit',
label: '&Edit',
submenu: [{
role: 'undo'
}, {
@@ -406,16 +406,16 @@ class AppMenu {
role: 'selectall'
}]
}, {
label: 'View',
label: '&View',
submenu: this.getViewSubmenu()
}, {
label: 'History',
label: '&History',
submenu: this.getHistorySubmenu()
}, {
label: 'Window',
label: '&Window',
submenu: this.getWindowSubmenu(tabs, activeTabIndex)
}, {
role: 'help',
role: '&help',
submenu: this.getHelpSubmenu()
}];
}