jupyter-js-filebrowser
Advanced tools
Comparing version 0.4.3 to 0.4.4
@@ -145,3 +145,3 @@ // Copyright (c) Jupyter Development Team. | ||
FileHandler.prototype.createWidget = function (path) { | ||
var widget = new phosphor_codemirror_1.CodeMirrorWidget(); | ||
var widget = new FocusedCodeMirrorWidget(); | ||
widget.title.text = path.split('/').pop(); | ||
@@ -181,2 +181,26 @@ return widget; | ||
/** | ||
* A code mirror widget that takes focus. | ||
*/ | ||
var FocusedCodeMirrorWidget = (function (_super) { | ||
__extends(FocusedCodeMirrorWidget, _super); | ||
function FocusedCodeMirrorWidget() { | ||
_super.apply(this, arguments); | ||
} | ||
/** | ||
* A message handler invoked on an `'after-attach'` message. | ||
*/ | ||
FocusedCodeMirrorWidget.prototype.onAfterAttach = function (msg) { | ||
_super.prototype.onAfterAttach.call(this, msg); | ||
this.editor.focus(); | ||
}; | ||
/** | ||
* A message handler invoked on an `'after-show'` message. | ||
*/ | ||
FocusedCodeMirrorWidget.prototype.onAfterShow = function (msg) { | ||
_super.prototype.onAfterShow.call(this, msg); | ||
this.editor.focus(); | ||
}; | ||
return FocusedCodeMirrorWidget; | ||
})(phosphor_codemirror_1.CodeMirrorWidget); | ||
/** | ||
* Load a codemirror mode by name. | ||
@@ -183,0 +207,0 @@ */ |
{ | ||
"name": "jupyter-js-filebrowser", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "File browser widget for Jupyter", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
113221
3230