mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-06 11:35:24 +08:00
ENTER submits the rename notebook dialog.
This commit is contained in:
parent
c57fa1cd6a
commit
4dc94e29c8
@ -94,6 +94,15 @@ var IPython = (function (IPython) {
|
||||
"Cancel": function () {
|
||||
$(this).dialog('close');
|
||||
}
|
||||
},
|
||||
open : function (event, ui) {
|
||||
var that = $(this);
|
||||
// Upon ENTER, click the OK button.
|
||||
that.keydown(function (event, ui) {
|
||||
if (event.which === 13) {
|
||||
that.parent().find('button').first().click();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user