From 10cd7850ca1e5158e1a6cf46f9c3f134e45bc1dd Mon Sep 17 00:00:00 2001 From: Akash Nimare Date: Thu, 13 Sep 2018 13:13:18 +0530 Subject: [PATCH] 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. --- app/main/menu.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/main/menu.js b/app/main/menu.js index 07637970..4f43972e 100644 --- a/app/main/menu.js +++ b/app/main/menu.js @@ -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() }]; }