Skip to content

Commit

Permalink
linux: Fix ALT+SHIFT opening menu items on Linux.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
akashnimare committed Sep 13, 2018
1 parent 86e3d06 commit 10cd785
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/main/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ class AppMenu {
const { tabs, activeTabIndex } = props;

return [{
label: 'File',
label: '&File',
submenu: [{
label: 'About Zulip',
click(item, focusedWindow) {
Expand Down Expand Up @@ -383,7 +383,7 @@ class AppMenu {
accelerator: 'Ctrl+Q'
}]
}, {
label: 'Edit',
label: '&Edit',
submenu: [{
role: 'undo'
}, {
Expand All @@ -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()
}];
}
Expand Down

0 comments on commit 10cd785

Please sign in to comment.