A local-first personal finance app
:electron: Added keyboard shortcuts reference to Help menu (#3100)
Michael Clark1e41d695c5f0
diff --git a/packages/desktop-electron/menu.ts b/packages/desktop-electron/menu.tsindex 33f4883dc6..4c44c30ce2 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.mdnew file mode 100644index 0000000000..903636c006--- /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