mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-28 18:40:34 -05:00
:electron: Added keyboard shortcuts reference to Help menu (#3100)
* adding keyboard shortcuts reference to help menu * add release notes
This commit is contained in:
@@ -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() {
|
||||
|
||||
6
upcoming-release-notes/3100.md
Normal file
6
upcoming-release-notes/3100.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Enhancements
|
||||
authors: [MikesGlitch]
|
||||
---
|
||||
|
||||
Added Keyboard Shortcuts Reference to the Electron Help menu
|
||||
Reference in New Issue
Block a user