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