:electron: Added keyboard shortcuts reference to Help menu (#3100)

* adding keyboard shortcuts reference to help menu

* add release notes
This commit is contained in:
Michael Clark
2024-07-18 16:13:50 +01:00
committed by GitHub
parent 12f91f7d86
commit 1e41d695c5
2 changed files with 21 additions and 0 deletions

View File

@@ -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() {

View File

@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [MikesGlitch]
---
Added Keyboard Shortcuts Reference to the Electron Help menu