ipython/ipython — pull request #1858 by mcelrath (2012-06-05 08:40:52+00:00)
Title: Prevent jumping of window to input when output is clicked.

When the user clicks on the output portion of a cell, the window will scroll to the corresponding input portion of the cell. This is very disruptive when you have multi-page output and makes examining or cutting/selecting output very tedious.

This patch fixes that by explicitly calling calling code_mirror.focus() when it is necessary (on keypress up/down and execute) and removing the corresponding call from CodeCell.protototype.select().

I also removed the code_mirror.refresh() calls, as they are unnecessary.

(This is the same code as #1857, I have reorganized my repository to have a branch 'jumpy_output' following @fperez 's recommendation. Sorry for being a git neophyte...)