For me middle click mouse paste works on codemirror (and in general in the browser) but not in the notebook (ipython 0.13, Chromium v. 20.0.1132.47 on Ubuntu 12.04)<div><br></div><div>Cheers,</div><div>Fra</div><div class="gmail_extra">
<br><br><div class="gmail_quote">2012/11/21 Matthias BUSSONNIER <span dir="ltr"><<a href="mailto:bussonniermatthias@gmail.com" target="_blank">bussonniermatthias@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Le 21 nov. 2012 à 08:08, Jakob Gager a écrit :<br>
<div class="im"><br>
> In this context it is also interesting that middle mouse button pasteing is not working in the notebook<br>
> (neither in code cells nor markup cells).<br>
> This might also be related the the JS code-editing widget?<br>
<br>
</div>We are preventing default action for many things in notebook widget because of the diversity of the browser<br>
(eg <esc> in FF clos websocket connexion) so there are lot of chances you extension is blocked because of that.<br>
<br>
You can try on a non-modified code mirror example (<a href="http://codemirror.net/demo/theme.html" target="_blank">http://codemirror.net/demo/theme.html</a>) to see wether it is IPython or CodeMirror itself that blocks.<br>
<br>
As for the mouse paste, I'm not sure where we capture it, you can also do the same test as above to know wether it is us or CodeMirror.<br>
<br>
We plan on making the keybindings as configurable as possible, but I don't know how possible it will be to give control to FF extension.<br>
<span class="HOEnZb"><font color="#888888">--<br>
Matthias<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
> Jakob<br>
><br>
> On 11/21/2012 12:00 AM, Daniel Wheeler wrote:<br>
>><br>
>><br>
>><br>
>> On Tue, Nov 20, 2012 at 5:50 PM, David Warde-Farley <<a href="mailto:d.warde.farley@gmail.com">d.warde.farley@gmail.com</a><br>
>> <mailto:<a href="mailto:d.warde.farley@gmail.com">d.warde.farley@gmail.com</a>>> wrote:<br>
>><br>
>> Does it happen in code cells only or Markdown/raw cells as well?<br>
>><br>
>><br>
>> It happens in both Markdown and raw text as well (i.e. the browser keybindings don't work).<br>
>><br>
>> If it's just code cells, my guess would be that CodeMirror (the JS code-editing widget that IPython<br>
>> ships) would be overriding things. There is some key listener logic in IPython's part but it mostly<br>
>> only traps things that follow a Ctrl+M.<br>
>><br>
>> David<br>
>><br>
>><br>
>> --<br>
>> Daniel Wheeler<br>
>><br>
>><br>
>> _______________________________________________<br>
>> IPython-User mailing list<br>
>> <a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
>> <a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
><br>
> _______________________________________________<br>
> IPython-User mailing list<br>
> <a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
> <a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
<br>
_______________________________________________<br>
IPython-User mailing list<br>
<a href="mailto:IPython-User@scipy.org">IPython-User@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/ipython-user" target="_blank">http://mail.scipy.org/mailman/listinfo/ipython-user</a><br>
</div></div></blockquote></div><br></div>