From 230e9c93e52db6be2eaf150c7d7bdcae132d48e6 Mon Sep 17 00:00:00 2001 From: Jean Brito Date: Fri, 22 May 2026 19:21:25 -0300 Subject: [PATCH] fix: add Cmd+, shortcut to open Preferences on macOS Add standard macOS Preferences menu item with 'Command+,' accelerator in the app menu. Opens the Settings view, matching existing behavior. - Add 'preferences' translation key - Insert Preferences item in macOS app menu between About and Services - Uses standard Electron 'Command+,' accelerator - macOS-only (inside process.platform === 'darwin' block) --- src/i18n/en.i18n.json | 1 + src/ui/main/menuBar.ts | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/src/i18n/en.i18n.json b/src/i18n/en.i18n.json index d4d3632a3f..c427ac4f2d 100644 --- a/src/i18n/en.i18n.json +++ b/src/i18n/en.i18n.json @@ -392,6 +392,7 @@ "toggleDevTools": "Toggle &DevTools", "openConfigFolder": "Open &Configuration Folder", "openLogViewer": "Open &Log Viewer", + "preferences": "Preferences", "videoCallDevTools": "Open Video Call &DevTools", "videoCallTools": "Video Call Tools", "videoCallDevToolsAutoOpen": "Auto-open DevTools", diff --git a/src/ui/main/menuBar.ts b/src/ui/main/menuBar.ts index c2d71eaab2..c9f693481b 100644 --- a/src/ui/main/menuBar.ts +++ b/src/ui/main/menuBar.ts @@ -64,6 +64,21 @@ const createAppMenu = createSelector( }, }, { type: 'separator' }, + { + id: 'preferences', + label: t('menus.preferences'), + accelerator: 'Command+,', + click: async () => { + const browserWindow = await getRootWindow(); + + if (!browserWindow.isVisible()) { + browserWindow.showInactive(); + } + browserWindow.focus(); + dispatch({ type: SIDE_BAR_SETTINGS_BUTTON_CLICKED }); + }, + }, + { type: 'separator' }, { id: 'services', label: t('menus.services'),