From 91d457e99ae38e3ee59fdbd93b99f46372c3d42f 2011-11-30 23:10:31 From: MinRK <benjaminrk@gmail.com> Date: 2011-11-30 23:10:31 Subject: [PATCH] don't swallow regular key events in read-only mode --- diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index d8b2876..1b973b2 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -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