Merge pull request #5121 from minrk/fix-remove-enable

fix remove event in KeyboardManager.register_events
Min RK 12 years ago
commit a7e9a3e867

@ -752,9 +752,11 @@ var IPython = (function (IPython) {
});
// 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,
// which gets triggered upon removal.
// which gets triggered upon removal, iff it is focused at the time.
e.on('remove', function () {
that.enable();
if (document.activeElement === e[0]) {
that.enable();
}
});
}

Loading…
Cancel
Save