mirror of
https://github.com/jupyter/notebook.git
synced 2025-02-05 12:19:58 +08:00
Dont' force command mode in kbm.register_events.
This commit is contained in:
parent
63ae9e2fd7
commit
36ca1b0baf
@ -740,18 +740,15 @@ var IPython = (function (IPython) {
|
|||||||
KeyboardManager.prototype.register_events = function (e) {
|
KeyboardManager.prototype.register_events = function (e) {
|
||||||
var that = this;
|
var that = this;
|
||||||
e.on('focusin', function () {
|
e.on('focusin', function () {
|
||||||
that.command_mode();
|
|
||||||
that.disable();
|
that.disable();
|
||||||
});
|
});
|
||||||
e.on('focusout', function () {
|
e.on('focusout', function () {
|
||||||
that.command_mode();
|
|
||||||
that.enable();
|
that.enable();
|
||||||
});
|
});
|
||||||
// There are times (raw_input) where we remove the element from the DOM before
|
// There are times (raw_input) where we remove the element from the DOM before
|
||||||
// focusout is called. In this case we bind to the remove event of jQueryUI,
|
// focusout is called. In this case we bind to the remove event of jQueryUI,
|
||||||
// which gets triggered upon removal.
|
// which gets triggered upon removal.
|
||||||
e.on('remove', function () {
|
e.on('remove', function () {
|
||||||
that.command_mode();
|
|
||||||
that.enable();
|
that.enable();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user