Show More
@@ -351,6 +351,18 b' var IPython = (function (IPython) {' | |||
|
351 | 351 | } |
|
352 | 352 | index = Math.min(Math.max(index, 0), options.length-1); |
|
353 | 353 | this.sel[0].selectedIndex = index; |
|
354 | } else if (code == keycodes.pageup || code == keycodes.pagedown) { | |
|
355 | CodeMirror.e_stop(event); | |
|
356 | ||
|
357 | var options = this.sel.find('option'); | |
|
358 | var index = this.sel[0].selectedIndex; | |
|
359 | if (code == keycodes.pageup) { | |
|
360 | index -= 10; // As 10 is the hard coded size of the drop down menu | |
|
361 | } else { | |
|
362 | index += 10; | |
|
363 | } | |
|
364 | index = Math.min(Math.max(index, 0), options.length-1); | |
|
365 | this.sel[0].selectedIndex = index; | |
|
354 | 366 | } else if (code == keycodes.left || code == keycodes.right) { |
|
355 | 367 | this.close(); |
|
356 | 368 | } |
General Comments 0
You need to be logged in to leave comments.
Login now