click on close cancell stick

pull/37/head
Matthias BUSSONNIER 14 years ago committed by Brian Granger
parent 366cba5916
commit 9f319f6da9

@ -92,6 +92,9 @@ var IPython = (function (IPython) {
} else {
return true;
};
} else if (event.which === key.ESC) {
IPython.tooltip.remove_and_cancel_tooltip(true);
return true;
} else if (event.which === key.DOWNARROW && event.type === 'keydown') {
// If we are not at the bottom, let CM handle the down arrow and
// prevent the global keydown handler from handling it.

@ -168,6 +168,7 @@ var IPython = (function (IPython) {
// as in the completer, because it is not focusable, so won't
// get the event.
if (this._sticky == false || force == true) {
this.cancel_stick();
this._hide();
}
this.cancel_pending();

Loading…
Cancel
Save