mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
fixed missing return for keybinding
This commit is contained in:
parent
6120c07c4d
commit
a53def4a49
1
.gitignore
vendored
1
.gitignore
vendored
@ -11,3 +11,4 @@ build
|
|||||||
*.egg-info
|
*.egg-info
|
||||||
*~
|
*~
|
||||||
*.bak
|
*.bak
|
||||||
|
*.ipynb
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user