ipython/ipython — pull request #1318 by ivanov (2012-01-24 23:36:19+00:00)
Title: make Ctrl-D in qtconsole act same as in terminal

my muscle memory refuses to accept the current functionality of `CTRL-D` in qt console - because everywhere else i can use it to end a current line of input, or, when type at the beginning of an otherwise empty prompt - asks if I want to exit (the way IPython single process terminal and console do it, the way most unix shells do it, as well).

With this PR, the functionality in qtconsole matches the terminal. Pressing `Ctrl-D` when the input prompt is non-empty will just send the entire input to IPython (so you don't get a continuation prompt if you do something like):

In [1]: 'asdfa'
Out[1]: 'asdfa'

whereas if you type in on an empty line you get

In [5]:
Do you really want to exit ([y]/n)?

In the terminal, typing `` again at that prompt will exit, and I've carried that over to the prompt that pops up in the qtconsole.