[IPython-dev] available modifier keys. Broken Shift-Ins paste.
Dmitry Chichkov
dchichkov at gmail.com
Fri Jul 13 15:51:57 EDT 2012
It looks like broken "Shift-Ins" paste in Notebook is have something to do
with the following code in the
IPython/frontend/html/notebook/static/js/notebook.js :
else if (event.which === key.SHIFT) {
// ignore shift keydown
return true;
}
If I'm commenting it out, shift-insert paste starts working again.
It looks like this code was introduced in the following commit 8dc3ac7 -
"prevented case-sensitive shortcuts if shift was pressed after control
key:
https://github.com/ipython/ipython/commit/8dc3ac7c3961a5486aeb8552d772e7be45c6128f
Dmitry
Don't know what OS you run, but FYI Alt-Enter doesn't seem to do
> anything on Windows in both Firefox and Chrome.
> >*From the user point of view, your suggestion for executing and*appending new cell in one shortcut, looks interesting to me
>
> While here, I don't want to steal your topic, but as I opened it
> because you mentioned modifiers, I noticed strange behavior and I'm
> not sure if it's the way it should be: CUI clipboard commands, which
> are handy in Notebook environment, behave like this on my PC:
>
> - Ctrl-Ins (Copy) - copies selection to clipboard (as expected)
> - Shift-Del (Cut) - deletes selection (can be easily mistaken that
> contents is cut to clipboard)
> - Shift-Ins (Paste) - doesn't paste but triggers Insert
>
> so it looks like some changes to Shift modifier has something to do
> with this unfortunate behavior.
>
>
> On Mon, Jul 2, 2012 at 7:30 PM, Zoltán Vörös <zvoros at gmail.com <http://mail.scipy.org/mailman/listinfo/ipython-dev>> wrote:
> >* Hi All,*>**>* I know that since the notebook is supported on many platforms and on*>* many browsers, the intersection of the many sets containing modifiers is*>* somewhat limited, so I would like to ask, whether something like*>* Alt+Enter would work on all systems. What I would like to suggest (I can*>* also implement it, if I am given the go-ahead) is a shortcut for*>* Shift+Enter + Control-m a. Many a time, I find myself going back to a*>* piece of code in the middle of the notebook, and after entering a*>* statement, I would like to get a new code cell at that particular place.*>* Control+Enter takes me back to the cell, and Shift+Enter jumps to the*>* next cell. I think, such an addition would be useful, but I don't know*>* what the allowed modifiers are.*>**>* Any comments or suggestions?*>**>* Cheers,*>* Zoltán*>* _______________________________________________*>* IPython-dev mailing list*>* IPython-dev at scipy.org <http://mail.scipy.org/mailman/listinfo/ipython-dev>*>* http://mail.scipy.org/mailman/listinfo/ipython-dev*
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20120713/30f60603/attachment.html>
More information about the IPython-dev
mailing list