Making the input text area watch for `ENTER` in nb renames.

Brian Granger 14 years ago
parent 4dc94e29c8
commit 010c35b130

@ -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();
}

Loading…
Cancel
Save