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