##// END OF EJS Templates
Merge pull request #1821 from ellisonbg/nbrename-enter...
Brian E. Granger -
r7249:7d8e4a4a merge
parent child Browse files
Show More
@@ -94,6 +94,15 b' var IPython = (function (IPython) {'
94 "Cancel": function () {
94 "Cancel": function () {
95 $(this).dialog('close');
95 $(this).dialog('close');
96 }
96 }
97 },
98 open : function (event, ui) {
99 var that = $(this);
100 // Upon ENTER, click the OK button.
101 that.find('input[type="text"]').keydown(function (event, ui) {
102 if (event.which === utils.keycodes.ENTER) {
103 that.parent().find('button').first().click();
104 }
105 });
97 }
106 }
98 });
107 });
99 }
108 }
General Comments 0
You need to be logged in to leave comments. Login now