From 1854b045dcf9f4165488ed484d553defe0e57851 2012-01-27 19:49:39 From: fawce Date: 2012-01-27 19:49:39 Subject: [PATCH] fixed missing return for keybinding --- diff --git a/.gitignore b/.gitignore index bf3bb8a..87452f4 100644 --- a/.gitignore +++ b/.gitignore @@ -11,3 +11,4 @@ build *.egg-info *~ *.bak +*.ipynb diff --git a/IPython/frontend/html/notebook/static/js/notebook.js b/IPython/frontend/html/notebook/static/js/notebook.js index 5610aae..136de18 100644 --- a/IPython/frontend/html/notebook/static/js/notebook.js +++ b/IPython/frontend/html/notebook/static/js/notebook.js @@ -68,6 +68,7 @@ var IPython = (function (IPython) { if ((event.ctrlKey || event.metaKey) && event.keyCode==83) { IPython.save_widget.save_notebook(); event.preventDefault(); + return false; } else if (event.which === 27) { // Intercept escape at highest level to avoid closing // websocket connection with firefox