@jupyterlab/console
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -67,2 +67,7 @@ // Copyright (c) Jupyter Development Team. | ||
/** | ||
* The data attribute Whether the console interaction mimics the notebook | ||
* or terminal keyboard shortcuts. | ||
*/ | ||
const INTERACTION_MODE = 'jpInteractionMode'; | ||
/** | ||
* A widget containing a Jupyter console. | ||
@@ -666,2 +671,3 @@ * | ||
_createCodeCellOptions() { | ||
const { node } = this; | ||
const contentFactory = this.contentFactory; | ||
@@ -675,3 +681,4 @@ const modelFactory = this.modelFactory; | ||
keydown: (event, view) => { | ||
if (event.keyCode === 13) { | ||
if (event.keyCode === 13 && | ||
node.dataset[INTERACTION_MODE] === 'terminal') { | ||
event.preventDefault(); | ||
@@ -678,0 +685,0 @@ return true; |
{ | ||
"name": "@jupyterlab/console", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"description": "JupyterLab - Code Console", | ||
@@ -49,12 +49,12 @@ "homepage": "https://github.com/jupyterlab/jupyterlab", | ||
"@jupyter/ydoc": "^1.1.1", | ||
"@jupyterlab/apputils": "^4.2.2", | ||
"@jupyterlab/cells": "^4.1.2", | ||
"@jupyterlab/codeeditor": "^4.1.2", | ||
"@jupyterlab/coreutils": "^6.1.2", | ||
"@jupyterlab/nbformat": "^4.1.2", | ||
"@jupyterlab/observables": "^5.1.2", | ||
"@jupyterlab/rendermime": "^4.1.2", | ||
"@jupyterlab/services": "^7.1.2", | ||
"@jupyterlab/translation": "^4.1.2", | ||
"@jupyterlab/ui-components": "^4.1.2", | ||
"@jupyterlab/apputils": "^4.2.3", | ||
"@jupyterlab/cells": "^4.1.3", | ||
"@jupyterlab/codeeditor": "^4.1.3", | ||
"@jupyterlab/coreutils": "^6.1.3", | ||
"@jupyterlab/nbformat": "^4.1.3", | ||
"@jupyterlab/observables": "^5.1.3", | ||
"@jupyterlab/rendermime": "^4.1.3", | ||
"@jupyterlab/services": "^7.1.3", | ||
"@jupyterlab/translation": "^4.1.3", | ||
"@jupyterlab/ui-components": "^4.1.3", | ||
"@lumino/coreutils": "^2.1.2", | ||
@@ -68,4 +68,4 @@ "@lumino/disposable": "^2.1.2", | ||
"devDependencies": { | ||
"@jupyterlab/codemirror": "^4.1.2", | ||
"@jupyterlab/testing": "^4.1.2", | ||
"@jupyterlab/codemirror": "^4.1.3", | ||
"@jupyterlab/testing": "^4.1.3", | ||
"@types/jest": "^29.2.0", | ||
@@ -72,0 +72,0 @@ "jest": "^29.2.0", |
@@ -95,2 +95,7 @@ // Copyright (c) Jupyter Development Team. | ||
const UNDOER = 'jpUndoer'; | ||
/** | ||
* The data attribute Whether the console interaction mimics the notebook | ||
* or terminal keyboard shortcuts. | ||
*/ | ||
const INTERACTION_MODE = 'jpInteractionMode'; | ||
@@ -793,2 +798,3 @@ /** | ||
private _createCodeCellOptions(): CodeCell.IOptions { | ||
const { node } = this; | ||
const contentFactory = this.contentFactory; | ||
@@ -803,3 +809,6 @@ const modelFactory = this.modelFactory; | ||
keydown: (event: KeyboardEvent, view: EditorView) => { | ||
if (event.keyCode === 13) { | ||
if ( | ||
event.keyCode === 13 && | ||
node.dataset[INTERACTION_MODE] === 'terminal' | ||
) { | ||
event.preventDefault(); | ||
@@ -806,0 +815,0 @@ return true; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172107
4259
Updated@jupyterlab/apputils@^4.2.3
Updated@jupyterlab/cells@^4.1.3
Updated@jupyterlab/coreutils@^6.1.3
Updated@jupyterlab/nbformat@^4.1.3
Updated@jupyterlab/services@^7.1.3