mirror of
https://github.com/zulip/zulip-desktop.git
synced 2025-11-17 04:11:31 +00:00
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:
@@ -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()
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user