@@ -352,7 +352,19 @@ const editorMenu: MenuItemConstructorOptions[] = [
352352 }
353353 } ,
354354 {
355- label : i18n . t ( 'menu:editor.previewMarkdown' ) ,
355+ label : i18n . t ( 'menu:editor.previewCode' ) ,
356+ accelerator : 'Shift+CommandOrControl+P' ,
357+ click : ( ) => {
358+ BrowserWindow . getFocusedWindow ( ) ?. webContents . send (
359+ 'main-menu:preview-code'
360+ )
361+ }
362+ }
363+ ]
364+
365+ const markdownMenu : MenuItemConstructorOptions [ ] = [
366+ {
367+ label : i18n . t ( 'menu:markdown.preview' ) ,
356368 accelerator : 'Shift+CommandOrControl+M' ,
357369 click : ( ) => {
358370 BrowserWindow . getFocusedWindow ( ) ?. webContents . send (
@@ -361,11 +373,11 @@ const editorMenu: MenuItemConstructorOptions[] = [
361373 }
362374 } ,
363375 {
364- label : i18n . t ( 'menu:editor.previewCode ' ) ,
365- accelerator : 'Shift +CommandOrControl+P' ,
376+ label : i18n . t ( 'menu:markdown.presentationMode ' ) ,
377+ accelerator : 'Control +CommandOrControl+P' ,
366378 click : ( ) => {
367379 BrowserWindow . getFocusedWindow ( ) ?. webContents . send (
368- 'main-menu:preview-code '
380+ 'main-menu:presentation-mode '
369381 )
370382 }
371383 }
@@ -425,6 +437,10 @@ const menuItems: MenuItemConstructorOptions[] = [
425437 label : i18n . t ( 'menu:editor.label' ) ,
426438 submenu : editorMenu
427439 } ,
440+ {
441+ label : i18n . t ( 'menu:markdown.label' ) ,
442+ submenu : markdownMenu
443+ } ,
428444 {
429445 label : i18n . t ( 'menu:help.label' ) ,
430446 submenu : helpMenu
0 commit comments