Show More
@@ -164,7 +164,7 b' var IPython = (function (IPython) {' | |||||
164 | * |
|
164 | * | |
165 | * @method handle_codemirror_keyevent |
|
165 | * @method handle_codemirror_keyevent | |
166 | * @param {CodeMirror} editor - The codemirror instance bound to the cell |
|
166 | * @param {CodeMirror} editor - The codemirror instance bound to the cell | |
167 | * @param {event} event - |
|
167 | * @param {event} event - key press event which either should or should not be handled by CodeMirror | |
168 | * @return {Boolean} `true` if CodeMirror should ignore the event, `false` Otherwise |
|
168 | * @return {Boolean} `true` if CodeMirror should ignore the event, `false` Otherwise | |
169 | */ |
|
169 | */ | |
170 | Cell.prototype.handle_codemirror_keyevent = function (editor, event) { |
|
170 | Cell.prototype.handle_codemirror_keyevent = function (editor, event) { |
@@ -202,9 +202,9 b' var IPython = (function (IPython) {' | |||||
202 | // is actually empty |
|
202 | // is actually empty | |
203 | IPython.tooltip.pending(that, true); |
|
203 | IPython.tooltip.pending(that, true); | |
204 | } else if ( tooltip_closed && event.which === keycodes.esc && event.type === 'keydown') { |
|
204 | } else if ( tooltip_closed && event.which === keycodes.esc && event.type === 'keydown') { | |
205 | // If tooltip is active, cancel it. |
|
205 | // If tooltip is active, cancel it. The call to | |
206 |
// |
|
206 | // remove_and_cancel_tooltip above doesn't pass, force=true. | |
207 |
// |
|
207 | // Because of this it won't actually close the tooltip | |
208 | // if it is in sticky mode. Thus, we have to check again if it is open |
|
208 | // if it is in sticky mode. Thus, we have to check again if it is open | |
209 | // and close it with force=true. |
|
209 | // and close it with force=true. | |
210 | if (!IPython.tooltip._hidden) { |
|
210 | if (!IPython.tooltip._hidden) { | |
@@ -410,7 +410,7 b' var IPython = (function (IPython) {' | |||||
410 |
|
410 | |||
411 | CodeCell.input_prompt_classical = function (prompt_value, lines_number) { |
|
411 | CodeCell.input_prompt_classical = function (prompt_value, lines_number) { | |
412 | var ns; |
|
412 | var ns; | |
413 | if (prompt_value == undefined) { |
|
413 | if (prompt_value === undefined) { | |
414 | ns = " "; |
|
414 | ns = " "; | |
415 | } else { |
|
415 | } else { | |
416 | ns = encodeURIComponent(prompt_value); |
|
416 | ns = encodeURIComponent(prompt_value); |
General Comments 0
You need to be logged in to leave comments.
Login now