fixed missing return for keybinding

This commit is contained in:
fawce 2012-01-27 14:49:39 -05:00
parent 6120c07c4d
commit a53def4a49
2 changed files with 2 additions and 0 deletions

1
.gitignore vendored
View File

@ -11,3 +11,4 @@ build
*.egg-info *.egg-info
*~ *~
*.bak *.bak
*.ipynb

View File

@ -68,6 +68,7 @@ var IPython = (function (IPython) {
if ((event.ctrlKey || event.metaKey) && event.keyCode==83) { if ((event.ctrlKey || event.metaKey) && event.keyCode==83) {
IPython.save_widget.save_notebook(); IPython.save_widget.save_notebook();
event.preventDefault(); event.preventDefault();
return false;
} else if (event.which === 27) { } else if (event.which === 27) {
// Intercept escape at highest level to avoid closing // Intercept escape at highest level to avoid closing
// websocket connection with firefox // websocket connection with firefox