mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-24 12:05:22 +08:00
don't swallow regular key events in read-only mode
This commit is contained in:
parent
f6e4b0ae60
commit
f18d172fdf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user