Show More
@@ -73,8 +73,8 b' var IPython = (function (IPython) {' | |||
|
73 | 73 | var that = this; |
|
74 | 74 | // whatever key is pressed, first, cancel the tooltip request before |
|
75 | 75 | // they are sent, and remove tooltip if any |
|
76 |
if(event.type === 'keydown' |
|
|
77 |
CodeCell.prototype.remove_and_cancel |
|
|
76 | if(event.type === 'keydown' ){ | |
|
77 | CodeCell.prototype.remove_and_cancel_tooltip(that.tooltip_timeout); | |
|
78 | 78 | that.tooltip_timeout=null; |
|
79 | 79 | } |
|
80 | 80 | |
@@ -145,12 +145,13 b' var IPython = (function (IPython) {' | |||
|
145 | 145 | return false; |
|
146 | 146 | }; |
|
147 | 147 | |
|
148 |
CodeCell.prototype.remove_and_cancel |
|
|
148 | CodeCell.prototype.remove_and_cancel_tooltip = function(timeout) | |
|
149 | 149 | { |
|
150 | 150 | // note that we don't handle closing directly inside the calltip |
|
151 | 151 | // as in the completer, because it is not focusable, so won't |
|
152 | 152 | // get the event. |
|
153 |
|
|
|
153 | if(timeout != null) | |
|
154 | { clearTimeout(timeout);} | |
|
154 | 155 | $('#tooltip').remove(); |
|
155 | 156 | } |
|
156 | 157 |
General Comments 0
You need to be logged in to leave comments.
Login now