Skip to content

Commit 109b39e

Browse files
committed
Prevent page reload on Enter
1 parent 98085dc commit 109b39e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

notebook/static/notebook/js/shortcuteditor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ var KeyBinding = createClass({
5050
that.props.onAddBindings(that.state.shrt, that.props.ckey);
5151
}
5252
that.state.shrt='';
53+
event.preventDefault();
5354
return false;
5455
};
5556
return createElement('form', {className:'jupyter-keybindings',

0 commit comments

Comments
 (0)