Fix #6221 notebook shortcut and use new grid in stable (#6268)

- Fix #6221 Notebooks: Keyboard Shortcut for New Notebook has Changed.
  - Use Win+Alt+N instead of Win+Shift+N
- New Grid is now "stable" (forgot to do this in last PR)
This commit is contained in:
Kevin Cunnane
2019-07-08 10:36:54 -07:00
committed by GitHub
parent 259f3f5892
commit fa1aa39bd9

View File

@@ -40,7 +40,7 @@ actionRegistry.registerWorkbenchAction(
NewNotebookAction, NewNotebookAction,
NewNotebookAction.ID, NewNotebookAction.ID,
NewNotebookAction.LABEL, NewNotebookAction.LABEL,
{ primary: KeyMod.WinCtrl | KeyMod.Shift | KeyCode.KEY_N }, { primary: KeyMod.WinCtrl | KeyMod.Alt | KeyCode.KEY_N },
), ),
NewNotebookAction.LABEL NewNotebookAction.LABEL
@@ -127,31 +127,16 @@ registerComponentType({
* A mime renderer component for grid data. * A mime renderer component for grid data.
* This will be replaced by a dedicated component in the future * This will be replaced by a dedicated component in the future
*/ */
if (product.quality !== 'stable') { registerComponentType({
registerComponentType({ mimeTypes: [
mimeTypes: [ 'application/vnd.dataresource+json',
'application/vnd.dataresource+json', 'application/vnd.dataresource'
'application/vnd.dataresource' ],
], rank: 40,
rank: 40, safe: true,
safe: true, ctor: GridOutputComponent,
ctor: GridOutputComponent, selector: GridOutputComponent.SELECTOR
selector: GridOutputComponent.SELECTOR });
});
} else {
// Default to existing grid view until we're sure the new
// implementation is fully stable
registerComponentType({
mimeTypes: [
'application/vnd.dataresource+json',
'application/vnd.dataresource'
],
rank: 40,
safe: true,
ctor: MimeRendererComponent,
selector: MimeRendererComponent.SELECTOR
});
}
/** /**
* A mime renderer component for LaTeX. * A mime renderer component for LaTeX.