diff --git a/packages/desktop-electron/menu.ts b/packages/desktop-electron/menu.ts index 33f4883dc6c3c883b9b46069e9936deab1151a43..4c44c30ce211565974ff90468fdc2e9e7010ede5 100644 --- a/packages/desktop-electron/menu.ts +++ b/packages/desktop-electron/menu.ts @@ -172,6 +172,21 @@ export function getMenu( { role: 'help', submenu: [ + { + label: 'Keyboard Shortcuts Reference', + accelerator: '?', + enabled: !!budgetId, + click: function (_menuItem, focusedWin) { + if (focusedWin) { + focusedWin.webContents.executeJavaScript( + 'window.__actionsForMenu && window.__actionsForMenu.pushModal("keyboard-shortcuts")', + ); + } + }, + }, + { + type: 'separator', + }, { label: 'Learn More', click() { diff --git a/upcoming-release-notes/3100.md b/upcoming-release-notes/3100.md new file mode 100644 index 0000000000000000000000000000000000000000..903636c006ba53107417d7e7bfdabd9b3bebfa1e --- /dev/null +++ b/upcoming-release-notes/3100.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [MikesGlitch] +--- + +Added Keyboard Shortcuts Reference to the Electron Help menu