Permalink
Browse files

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

  • Loading branch information...
1 parent 13c8185 commit 91d457e99ae38e3ee59fdbd93b99f46372c3d42f @minrk committed Nov 30, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 91d457e

Please sign in to comment.