diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 2ffaf31..5b33e8e 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -94,6 +94,15 @@ var IPython = (function (IPython) { "Cancel": function () { $(this).dialog('close'); } + }, + open : function (event, ui) { + var that = $(this); + // Upon ENTER, click the OK button. + that.keydown(function (event, ui) { + if (event.which === 13) { + that.parent().find('button').first().click(); + } + }); } }); }