aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/Menu.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Menu.ts')
-rw-r--r--src/lib/Menu.ts17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/lib/Menu.ts b/src/lib/Menu.ts
index bb8eead3a..8fd8e0a73 100644
--- a/src/lib/Menu.ts
+++ b/src/lib/Menu.ts
@@ -496,7 +496,15 @@ function titleBarTemplateFactory(
496 }, 496 },
497 { 497 {
498 label: intl.formatMessage(menuItems.zoomIn), 498 label: intl.formatMessage(menuItems.zoomIn),
499 accelerator: `${cmdOrCtrlShortcutKey()}+plus`, 499 // TODO: Modify this logic once https://github.com/electron/electron/issues/40674 is fixed
500 // This is a workaround for the issue where the zoom in shortcut is not working
501 // This makes sure the accelerator is not registered
502 accelerator: isWindows
503 ? `${cmdOrCtrlShortcutKey()}++`
504 : `${cmdOrCtrlShortcutKey()}+Plus`,
505 registerAccelerator: !!isMac,
506 acceleratorWorksWhenHidden: !!isMac,
507 // ---------------------------
500 click() { 508 click() {
501 const activeService = getActiveService(); 509 const activeService = getActiveService();
502 if (!activeService) { 510 if (!activeService) {
@@ -1134,7 +1142,12 @@ class FranzMenu implements StoresProps {
1134 for (const [i, service] of services.allDisplayed.entries()) { 1142 for (const [i, service] of services.allDisplayed.entries()) {
1135 menu.push({ 1143 menu.push({
1136 label: this._getServiceName(service), 1144 label: this._getServiceName(service),
1137 accelerator: acceleratorString(i + 1, cmdOrCtrlShortcutKey(), '', ''), 1145 accelerator: acceleratorString({
1146 index: i + 1,
1147 keyCombo: cmdOrCtrlShortcutKey(),
1148 prefix: '',
1149 suffix: '',
1150 }),
1138 type: 'radio', 1151 type: 'radio',
1139 checked: service.isActive, 1152 checked: service.isActive,
1140 click: () => { 1153 click: () => {