##// END OF EJS Templates
Dont' force command mode in kbm.register_events.
Brian E. Granger -
Show More
@@ -740,18 +740,15 b' var IPython = (function (IPython) {'
740 KeyboardManager.prototype.register_events = function (e) {
740 KeyboardManager.prototype.register_events = function (e) {
741 var that = this;
741 var that = this;
742 e.on('focusin', function () {
742 e.on('focusin', function () {
743 that.command_mode();
744 that.disable();
743 that.disable();
745 });
744 });
746 e.on('focusout', function () {
745 e.on('focusout', function () {
747 that.command_mode();
748 that.enable();
746 that.enable();
749 });
747 });
750 // There are times (raw_input) where we remove the element from the DOM before
748 // There are times (raw_input) where we remove the element from the DOM before
751 // focusout is called. In this case we bind to the remove event of jQueryUI,
749 // focusout is called. In this case we bind to the remove event of jQueryUI,
752 // which gets triggered upon removal.
750 // which gets triggered upon removal.
753 e.on('remove', function () {
751 e.on('remove', function () {
754 that.command_mode();
755 that.enable();
752 that.enable();
756 });
753 });
757 }
754 }
General Comments 0
You need to be logged in to leave comments. Login now