ipython/ipython — pull request #1857 by mcelrath (2012-06-05 02:30:55+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.