Skip to content

Commit 4650dab

Browse files
authored
Merge pull request #3871 from parente/fix/shortcut-editor-enter
Fix Enter causes page reload in shortcuts editor
2 parents 9c60369 + 109b39e commit 4650dab

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)