swallow enter event in rename dialog

avoids adding newline in cell after dialog is closed.

closes #3926
pull/37/head
MinRK 13 years ago
parent bf7704e622
commit c0ec02bdb4

@ -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();

Loading…
Cancel
Save