don't swallow regular key events in read-only mode

This commit is contained in:
MinRK 2011-11-30 15:10:31 -08:00
parent f6e4b0ae60
commit f18d172fdf

View File

@ -59,7 +59,7 @@ var IPython = (function (IPython) {
var that = this;
$(document).keydown(function (event) {
// console.log(event);
if (that.read_only) return false;
if (that.read_only) return true;
if (event.which === 27) {
// Intercept escape at highest level to avoid closing
// websocket connection with firefox