()
| 479 | } |
| 480 | |
| 481 | function createHistoryMenuItems(): MenuConfig[] { |
| 482 | return [ |
| 483 | { |
| 484 | label: i18n.t('menu:history.back'), |
| 485 | accelerator: 'CommandOrControl+[', |
| 486 | click: () => send('main-menu:navigate-back'), |
| 487 | }, |
| 488 | { |
| 489 | label: i18n.t('menu:history.forward'), |
| 490 | accelerator: 'CommandOrControl+]', |
| 491 | click: () => send('main-menu:navigate-forward'), |
| 492 | }, |
| 493 | ] |
| 494 | } |
| 495 | |
| 496 | function createNotesEditorModeItems(context: MainMenuContext): MenuConfig[] { |
| 497 | if (context.editor.kind !== 'notes' || !context.editor.noteMode) { |
no test coverage detected