From 010c35b13015cb2e45007b3ebf0daa2f53f48473 Mon Sep 17 00:00:00 2001 From: Brian Granger Date: Thu, 31 May 2012 21:54:59 -0700 Subject: [PATCH] Making the input text area watch for `ENTER` in nb renames. --- IPython/frontend/html/notebook/static/js/savewidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 5b33e8ecd..0f59504d6 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -98,7 +98,7 @@ var IPython = (function (IPython) { open : function (event, ui) { var that = $(this); // Upon ENTER, click the OK button. - that.keydown(function (event, ui) { + that.find('input[type="text"]').keydown(function (event, ui) { if (event.which === 13) { that.parent().find('button').first().click(); }