Skip to content

Commit

Permalink
swallow enter event in rename dialog
Browse files Browse the repository at this point in the history
avoids adding newline in cell after dialog is closed.

closes ipython#3926
  • Loading branch information
minrk committed Aug 7, 2013
1 parent 40de82f commit db53a23
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions IPython/html/static/notebook/js/savewidget.js
Expand Up @@ -100,6 +100,7 @@ var IPython = (function (IPython) {
that.find('input[type="text"]').keydown(function (event, ui) {
if (event.which === utils.keycodes.ENTER) {
that.find('.btn-primary').first().click();
return false;
}
});
that.find('input[type="text"]').focus();
Expand Down

0 comments on commit db53a23

Please sign in to comment.