Browse Source

Add CP to View menu, and reorder.

Brian E. Granger 4 years ago
parent
commit
5d6e3dbc9c
1 changed files with 11 additions and 10 deletions
  1. 11 10
      packages/mainmenu-extension/src/index.ts

+ 11 - 10
packages/mainmenu-extension/src/index.ts

@@ -677,12 +677,22 @@ export function createViewMenu(
     execute: Private.delegateExecute(app, menu.editorViewers, 'toggleWordWrap')
   });
 
+  menu.addGroup([{ command: 'apputils:activate-command-palette' }], 0);
+
+  menu.addGroup(
+    [
+      { command: 'application:toggle-mode' },
+      { command: 'application:toggle-presentation-mode' }
+    ],
+    1
+  );
+
   menu.addGroup(
     [
       { command: 'application:toggle-left-area' },
       { command: 'application:toggle-right-area' }
     ],
-    0
+    2
   );
 
   const editorViewerGroup = [
@@ -693,15 +703,6 @@ export function createViewMenu(
     return { command };
   });
   menu.addGroup(editorViewerGroup, 10);
-
-  // Add the command for toggling single-document mode.
-  menu.addGroup(
-    [
-      { command: 'application:toggle-presentation-mode' },
-      { command: 'application:toggle-mode' }
-    ],
-    1000
-  );
 }
 
 /**