Dont' force command mode in kbm.register_events.

This commit is contained in:
Brian E. Granger 2014-01-29 22:12:07 -08:00
parent 63ae9e2fd7
commit 36ca1b0baf

View File

@ -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();
}); });
} }