##// END OF EJS Templates
Intercept <esc> avoid closing websocket on Firefox...
Matthias BUSSONNIER -
Show More
@@ -57,6 +57,11 b' var IPython = (function (IPython) {'
57 57 $(document).keydown(function (event) {
58 58 // console.log(event);
59 59 if (that.read_only) return;
60 if (event.which === 27) {
61 // Intercept escape at highest level to avoid closing
62 // websocket connection with firefox
63 event.preventDefault();
64 }
60 65 if (event.which === 38) {
61 66 var cell = that.selected_cell();
62 67 if (cell.at_top()) {
General Comments 0
You need to be logged in to leave comments. Login now