##// END OF EJS Templates
don't swallow regular key events in read-only mode
MinRK -
Show More
@@ -59,7 +59,7 b' var IPython = (function (IPython) {'
59 var that = this;
59 var that = this;
60 $(document).keydown(function (event) {
60 $(document).keydown(function (event) {
61 // console.log(event);
61 // console.log(event);
62 if (that.read_only) return false;
62 if (that.read_only) return true;
63 if (event.which === 27) {
63 if (event.which === 27) {
64 // Intercept escape at highest level to avoid closing
64 // Intercept escape at highest level to avoid closing
65 // websocket connection with firefox
65 // websocket connection with firefox
General Comments 0
You need to be logged in to leave comments. Login now