##// END OF EJS Templates
Using IPython.utils.keycodes in the nb rename dialog.
Brian Granger -
Show More
@@ -99,7 +99,7 var IPython = (function (IPython) {
99 var that = $(this);
99 var that = $(this);
100 // Upon ENTER, click the OK button.
100 // Upon ENTER, click the OK button.
101 that.find('input[type="text"]').keydown(function (event, ui) {
101 that.find('input[type="text"]').keydown(function (event, ui) {
102 if (event.which === 13) {
102 if (event.which === utils.keycodes.ENTER) {
103 that.parent().find('button').first().click();
103 that.parent().find('button').first().click();
104 }
104 }
105 });
105 });
General Comments 0
You need to be logged in to leave comments. Login now