From 109b39e2b65ca515f3372421d14dbe376ccb74b0 Mon Sep 17 00:00:00 2001 From: Peter Parente Date: Tue, 21 Aug 2018 21:25:49 -0400 Subject: [PATCH] Prevent page reload on Enter --- notebook/static/notebook/js/shortcuteditor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/notebook/static/notebook/js/shortcuteditor.js b/notebook/static/notebook/js/shortcuteditor.js index 0fd51c71c..d404d8dc0 100644 --- a/notebook/static/notebook/js/shortcuteditor.js +++ b/notebook/static/notebook/js/shortcuteditor.js @@ -50,6 +50,7 @@ var KeyBinding = createClass({ that.props.onAddBindings(that.state.shrt, that.props.ckey); } that.state.shrt=''; + event.preventDefault(); return false; }; return createElement('form', {className:'jupyter-keybindings',