mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
Fixed rebase problems
This commit is contained in:
parent
10d79a9102
commit
3595c099c2
@ -748,13 +748,21 @@ 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 () {
|
var handle_focus = function () {
|
||||||
console.log('kb focus in');
|
console.log('kb focus in');
|
||||||
that.disable();
|
that.disable();
|
||||||
});
|
};
|
||||||
e.on('focusout', function () {
|
var handle_blur = function () {
|
||||||
console.log('kb focus out');
|
console.log('kb focus out');
|
||||||
that.enable();
|
that.enable();
|
||||||
|
};
|
||||||
|
e.on('focusin', handle_focus);
|
||||||
|
e.on('focusout', handle_blur);
|
||||||
|
// TODO: Very strange. The focusout event does not seem fire for the
|
||||||
|
// bootstrap text boxes on FF25&26...
|
||||||
|
e.find('*').blur(handle_blur);
|
||||||
|
e.on('DOMNodeInserted', function () {
|
||||||
|
e.find('*').blur(handle_blur);
|
||||||
});
|
});
|
||||||
// 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,
|
||||||
|
Loading…
Reference in New Issue
Block a user