Browse Source

Move application-extension keyboard shortcuts in the the correct schema file.

Afshin Darian 6 years ago
parent
commit
903535e24b

+ 35 - 0
packages/application-extension/schema/main.json

@@ -10,6 +10,41 @@
       "selector": "body",
       "title": "Activate Next Tab",
       "category": "Main Area"
+    },
+    {
+      "command": "application:activate-previous-tab",
+      "keys": ["Ctrl Shift ["],
+      "selector": "body",
+      "title": "Activate Previous Tab",
+      "category": "Main Area"
+    },
+    {
+      "command": "application:toggle-mode",
+      "keys": ["Accel Shift D"],
+      "selector": "body",
+      "title": "Toggle Single-Document Mode",
+      "category": "Main Area"
+    },
+    {
+      "command": "application:toggle-left-area",
+      "keys": ["Accel B"],
+      "selector": "body",
+      "title": "Toggle Left Area",
+      "category": "Main Area"
+    },
+    {
+      "command": "application:toggle-right-area",
+      "keys": [""],
+      "selector": "body",
+      "title": "Toggle Right Area",
+      "category": "Main Area"
+    },
+    {
+      "command": "application:toggle-presentation-mode",
+      "keys": [""],
+      "selector": "body",
+      "title": "Toggle Presentation Mode",
+      "category": "Main Area"
     }
   ],
   "properties": {},

+ 0 - 55
packages/shortcuts-extension/schema/plugin.json

@@ -4,17 +4,6 @@
   "title": "Keyboard Shortcuts",
   "description": "Keyboard shortcut settings for JupyterLab.",
   "properties": {
-    "application:activate-previous-tab": {
-      "default": {},
-      "properties": {
-        "command": { "default": "application:activate-previous-tab" },
-        "keys": { "default": ["Ctrl Shift ["] },
-        "selector": { "default": "body" },
-        "title": { "default": "Activate Previous Tab" },
-        "category": { "default": "Main Area" }
-      },
-      "type": "object"
-    },
     "tabmenu:activate-previously-used-tab": {
       "default": {},
       "properties": {
@@ -26,50 +15,6 @@
       },
       "type": "object"
     },
-    "application:toggle-mode": {
-      "default": {},
-      "properties": {
-        "command": { "default": "application:toggle-mode" },
-        "keys": { "default": ["Accel Shift D"] },
-        "selector": { "default": "body" },
-        "title": { "default": "Toggle Single-Document Mode" },
-        "category": { "default": "Main Area" }
-      },
-      "type": "object"
-    },
-    "application:toggle-left-area": {
-      "default": {},
-      "properties": {
-        "command": { "default": "application:toggle-left-area" },
-        "keys": { "default": ["Accel B"] },
-        "selector": { "default": "body" },
-        "title": { "default": "Toggle Left Area" },
-        "category": { "default": "Main Area" }
-      },
-      "type": "object"
-    },
-    "application:toggle-right-area": {
-      "default": {},
-      "properties": {
-        "command": { "default": "application:toggle-right-area" },
-        "keys": { "default": [""] },
-        "selector": { "default": "body" },
-        "title": { "default": "Toggle Right Area" },
-        "category": { "default": "Main Area" }
-      },
-      "type": "object"
-    },
-    "application:toggle-presentation-mode": {
-      "default": {},
-      "properties": {
-        "command": { "default": "application:toggle-presentation-mode" },
-        "keys": { "default": [""] },
-        "selector": { "default": "body" },
-        "title": { "default": "Toggle Presentation Mode" },
-        "category": { "default": "Main Area" }
-      },
-      "type": "object"
-    },
     "apputils:activate-command-palette": {
       "default": {},
       "properties": {