Show More
@@ -94,6 +94,15 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.keydown(function (event, ui) { | |||
|
102 | if (event.which === 13) { | |||
|
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