Show More
@@ -250,7 +250,16 b' var IPython = (function (IPython) {' | |||||
250 | }); |
|
250 | }); | |
251 | this.sel.blur($.proxy(this.close, this)); |
|
251 | this.sel.blur($.proxy(this.close, this)); | |
252 | this.sel.keydown(function (event) { |
|
252 | this.sel.keydown(function (event) { | |
253 | that.keydown(event); |
|
253 | // Ignore tab key since it causes the completer to reshow on some | |
|
254 | // machines and not with others. This strange behavior is due to | |||
|
255 | // the fact that we are tricking the notebook into thinking that it | |||
|
256 | // is in edit mode when it's really not. | |||
|
257 | if (IPython.keyboard.event_to_shortcut(event)=='tab') { | |||
|
258 | event.stopPropagation(); | |||
|
259 | event.preventDefault(); | |||
|
260 | } else { | |||
|
261 | that.keydown(event); | |||
|
262 | } | |||
254 | }); |
|
263 | }); | |
255 | this.sel.keypress(function (event) { |
|
264 | this.sel.keypress(function (event) { | |
256 | that.keypress(event); |
|
265 | that.keypress(event); |
General Comments 0
You need to be logged in to leave comments.
Login now