From 3346de2ae749b85360e57a65433f68dcdc0d982d 2012-06-01 04:57:42 From: Brian Granger Date: 2012-06-01 04:57:42 Subject: [PATCH] Using IPython.utils.keycodes in the nb rename dialog. --- diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 0f59504..8471cb3 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -99,7 +99,7 @@ var IPython = (function (IPython) { var that = $(this); // Upon ENTER, click the OK button. that.find('input[type="text"]').keydown(function (event, ui) { - if (event.which === 13) { + if (event.which === utils.keycodes.ENTER) { that.parent().find('button').first().click(); } });